mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 08:15:18 +00:00
Merge branch 'silenty4ng:master' into master
This commit is contained in:
commit
87cff0b20b
6 changed files with 16 additions and 5 deletions
|
@ -159,6 +159,8 @@ export default {
|
|||
'idea.diy': 'LOSEHU DIY',
|
||||
'diy.generate': 'Generate',
|
||||
'cps.dtmfid': 'DTMF ID',
|
||||
'global.upload': 'Upload',
|
||||
'global.loginUpload': '(Login to upload and share)',
|
||||
...localeSettings,
|
||||
...localeMessageBox,
|
||||
...localeLogin,
|
||||
|
|
|
@ -159,6 +159,8 @@ export default {
|
|||
'idea.diy': '自定义萝卜固件',
|
||||
'diy.generate': '生成',
|
||||
'cps.dtmfid': 'DTMF ID',
|
||||
'global.upload': '上传',
|
||||
'global.loginUpload': '(登录可上传分享)',
|
||||
...localeSettings,
|
||||
...localeMessageBox,
|
||||
...localeLogin,
|
||||
|
|
|
@ -81,11 +81,12 @@ const useUserStore = defineStore('user', {
|
|||
},
|
||||
// Logout
|
||||
async logout() {
|
||||
try {
|
||||
await userLogout();
|
||||
} finally {
|
||||
this.logoutCallBack();
|
||||
}
|
||||
// try {
|
||||
// await userLogout();
|
||||
// } finally {
|
||||
// this.logoutCallBack();
|
||||
// }
|
||||
this.logoutCallBack();
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
<div style="margin-right: 20px;">
|
||||
<template v-if="userStore.name">
|
||||
<a-link @click="showPanel"> {{ userStore.name }} </a-link>
|
||||
<a-link @click="showPanel"> {{ $t('global.upload') }} </a-link>
|
||||
<a-link @click="userStore.logout()"> {{ $t('global.logout') }} </a-link>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-link @click="userStore.setInfo({ showLogin: true })"> {{ $t('global.login') }} </a-link>
|
||||
<a-link @click="userStore.setInfo({ showRegister: true })"> {{ $t('global.register') }} </a-link>
|
||||
<span style="color: #373737; margin: 10px;">{{ $t('global.loginUpload') }}</span>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
<div style="margin-right: 20px;">
|
||||
<template v-if="userStore.name">
|
||||
<a-link @click="showPanel"> {{ userStore.name }} </a-link>
|
||||
<a-link @click="showPanel"> {{ $t('global.upload') }} </a-link>
|
||||
<a-link @click="userStore.logout()"> {{ $t('global.logout') }} </a-link>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-link @click="userStore.setInfo({ showLogin: true })"> {{ $t('global.login') }} </a-link>
|
||||
<a-link @click="userStore.setInfo({ showRegister: true })"> {{ $t('global.register') }} </a-link>
|
||||
<span style="color: #373737; margin: 10px;">{{ $t('global.loginUpload') }}</span>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
<div style="margin-right: 20px;">
|
||||
<template v-if="userStore.name">
|
||||
<a-link @click="showPanel"> {{ userStore.name }} </a-link>
|
||||
<a-link @click="showPanel"> {{ $t('global.upload') }} </a-link>
|
||||
<a-link @click="userStore.logout()"> {{ $t('global.logout') }} </a-link>
|
||||
</template>
|
||||
<template v-else>
|
||||
<a-link @click="userStore.setInfo({ showLogin: true })"> {{ $t('global.login') }} </a-link>
|
||||
<a-link @click="userStore.setInfo({ showRegister: true })"> {{ $t('global.register') }} </a-link>
|
||||
<span style="color: #373737; margin: 10px;">{{ $t('global.loginUpload') }}</span>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
|
Loading…
Reference in a new issue