style:代码格式化

This commit is contained in:
妙码生花 2022-03-21 04:33:20 +08:00
parent 1e70a79cb2
commit f8f5b7fb50
4 changed files with 21 additions and 10 deletions

View File

@ -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,
})
}

View File

@ -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>

View File

@ -10,7 +10,7 @@ export const useAdminInfo = defineStore('adminInfo', {
nickname: '',
avatar: '',
lastlogintime: '',
token: ''
token: '',
}
},
persist: {

View File

@ -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>