mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 15:24:09 +00:00
style:代码格式化
This commit is contained in:
parent
1e70a79cb2
commit
f8f5b7fb50
@ -8,11 +8,9 @@ export function index() {
|
||||
}
|
||||
|
||||
export function login(method: 'get' | 'post', params: object = {}) {
|
||||
return createAxios(
|
||||
{
|
||||
url: '/index.php/admin/index/login',
|
||||
data: params,
|
||||
method: method,
|
||||
}
|
||||
)
|
||||
return createAxios({
|
||||
url: '/index.php/admin/index/login',
|
||||
data: params,
|
||||
method: method,
|
||||
})
|
||||
}
|
||||
|
@ -1,5 +1,13 @@
|
||||
<template>
|
||||
<el-select @focus="getData('')" class="remote-select" :loading="state.loading" :filterable="true" :remote="true" clearable :remote-method="getData">
|
||||
<el-select
|
||||
@focus="getData('')"
|
||||
class="remote-select"
|
||||
:loading="state.loading"
|
||||
:filterable="true"
|
||||
:remote="true"
|
||||
clearable
|
||||
:remote-method="getData"
|
||||
>
|
||||
<el-option class="remote-select-option" v-for="item in state.options" :label="item[field]" :value="item[pk]"></el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
|
@ -10,7 +10,7 @@ export const useAdminInfo = defineStore('adminInfo', {
|
||||
nickname: '',
|
||||
avatar: '',
|
||||
lastlogintime: '',
|
||||
token: ''
|
||||
token: '',
|
||||
}
|
||||
},
|
||||
persist: {
|
||||
|
@ -67,7 +67,12 @@
|
||||
</el-input>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<img @click="onChangeCaptcha" class="captcha-img" :src="buildCaptchaUrl() + '?id=' + state.captchaId" alt="" />
|
||||
<img
|
||||
@click="onChangeCaptcha"
|
||||
class="captcha-img"
|
||||
:src="buildCaptchaUrl() + '?id=' + state.captchaId"
|
||||
alt=""
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
|
Loading…
Reference in New Issue
Block a user