fix: 打包报错问题修复
Former-commit-id: 88a4220b4a10e3be4a8ef288144e8c8c24638a4a
This commit is contained in:
@@ -74,8 +74,7 @@ onBeforeUnmount(() => {
|
|||||||
<div
|
<div
|
||||||
class="right-panel__button"
|
class="right-panel__button"
|
||||||
:style="{
|
:style="{
|
||||||
top: buttonTop + 'px',
|
top: buttonTop + 'px'
|
||||||
'background-color': settingsStore.theme
|
|
||||||
}"
|
}"
|
||||||
@click="show = !show"
|
@click="show = !show"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-color-picker
|
<el-color-picker
|
||||||
v-model="settingsStore.theme"
|
|
||||||
:predefine="[
|
:predefine="[
|
||||||
'#409EFF',
|
'#409EFF',
|
||||||
'#1890ff',
|
'#1890ff',
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ const props = defineProps({
|
|||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
function push() {
|
function push() {
|
||||||
if (device.value === DeviceType.mobile && sidebar.value.opened == true) {
|
if (device.value === 'mobile' && sidebar.value.opened == true) {
|
||||||
appStore.closeSideBar(false);
|
appStore.closeSideBar(false);
|
||||||
}
|
}
|
||||||
router.push(props.to).catch(err => {
|
router.push(props.to).catch(err => {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ service.interceptors.request.use(
|
|||||||
}
|
}
|
||||||
const user = useUserStoreHook();
|
const user = useUserStoreHook();
|
||||||
if (user.token) {
|
if (user.token) {
|
||||||
config.headers.Authorization = getToken();
|
(config.headers as any).Authorization = getToken();
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user