fix: 打包报错问题修复

Former-commit-id: 88a4220b4a10e3be4a8ef288144e8c8c24638a4a
This commit is contained in:
haoxr
2022-12-31 23:02:14 +08:00
parent f79651618e
commit 1ecf0663e6
4 changed files with 3 additions and 5 deletions

View File

@@ -74,8 +74,7 @@ onBeforeUnmount(() => {
<div
class="right-panel__button"
:style="{
top: buttonTop + 'px',
'background-color': settingsStore.theme
top: buttonTop + 'px'
}"
@click="show = !show"
>

View File

@@ -1,6 +1,5 @@
<template>
<el-color-picker
v-model="settingsStore.theme"
:predefine="[
'#409EFF',
'#1890ff',

View File

@@ -18,7 +18,7 @@ const props = defineProps({
const router = useRouter();
function push() {
if (device.value === DeviceType.mobile && sidebar.value.opened == true) {
if (device.value === 'mobile' && sidebar.value.opened == true) {
appStore.closeSideBar(false);
}
router.push(props.to).catch(err => {

View File

@@ -20,7 +20,7 @@ service.interceptors.request.use(
}
const user = useUserStoreHook();
if (user.token) {
config.headers.Authorization = getToken();
(config.headers as any).Authorization = getToken();
}
return config;
},