😎1、修复退出按钮错误 2、默认logo图片
This commit is contained in:
parent
5d8be89236
commit
320e23a054
@ -24,7 +24,7 @@
|
||||
"@vue-office/docx": "^1.6.2",
|
||||
"@vue-office/excel": "^1.7.14",
|
||||
"@vue-office/pdf": "^2.0.9",
|
||||
"@vueuse/core": "^12.3.0",
|
||||
"@vueuse/core": "^12.4.0",
|
||||
"@wangeditor/editor": "^5.1.23",
|
||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||
"animate.css": "^4.1.1",
|
||||
@ -74,7 +74,7 @@
|
||||
"vue-router": "^4.5.0",
|
||||
"vue-signature-pad": "^3.0.2",
|
||||
"vue3-tree-org": "^4.2.2",
|
||||
"vxe-pc-ui": "^4.3.67",
|
||||
"vxe-pc-ui": "^4.3.69",
|
||||
"vxe-table": "^4.10.5",
|
||||
"vxe-table-plugin-element": "^4.0.4",
|
||||
"vxe-table-plugin-export-xlsx": "^4.0.7",
|
||||
|
||||
@ -76,7 +76,7 @@
|
||||
<el-dropdown-item :icon="Avatar" command="/system/userCenter">{{ $t('message.user.dropdown2') }}</el-dropdown-item>
|
||||
<el-dropdown-item :icon="Loading" command="clearCache">{{ $t('message.user.dropdown3') }}</el-dropdown-item>
|
||||
<el-dropdown-item :icon="Lock" divided command="lockScreen">{{ $t('message.layout.threeIsLockScreen') }}</el-dropdown-item>
|
||||
<el-dropdown-item :icon="CircleCloseFilled" divided command="logut">{{ $t('message.user.dropdown5') }}</el-dropdown-item>
|
||||
<el-dropdown-item :icon="CircleCloseFilled" divided command="logOut">{{ $t('message.user.dropdown5') }}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
@ -188,6 +188,7 @@ const onHandleCommandClick = (path: string) => {
|
||||
instance.confirmButtonLoading = true;
|
||||
instance.confirmButtonText = t('message.user.logOutExit');
|
||||
try {
|
||||
clearAccessTokens();
|
||||
await getAPI(SysAuthApi).apiSysAuthLogoutPost();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { Local } from '/@/utils/storage';
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useThemeConfig } from '/@/stores/themeConfig';
|
||||
import logoImg from '/@/assets/logo.png';
|
||||
|
||||
import { SysConfigApi } from '/@/api-services';
|
||||
import { feature, getAPI } from '/@/utils/axios-utils';
|
||||
@ -12,8 +13,8 @@ const { themeConfig } = storeToRefs(storesThemeConfig);
|
||||
export async function loadSysInfo() {
|
||||
const [err, res] = await feature(getAPI(SysConfigApi).apiSysConfigSysInfoGet());
|
||||
if (err) {
|
||||
// 置空 logo 地址
|
||||
themeConfig.value.logoUrl = '';
|
||||
// 默认 logo 地址
|
||||
themeConfig.value.logoUrl = logoImg;
|
||||
// 保存配置
|
||||
Local.remove('themeConfig');
|
||||
Local.set('themeConfig', storesThemeConfig.themeConfig);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user