fix: 打包报错问题修复
This commit is contained in:
parent
4ae591bfce
commit
88a4220b4a
|
|
@ -74,8 +74,7 @@ onBeforeUnmount(() => {
|
|||
<div
|
||||
class="right-panel__button"
|
||||
:style="{
|
||||
top: buttonTop + 'px',
|
||||
'background-color': settingsStore.theme
|
||||
top: buttonTop + 'px'
|
||||
}"
|
||||
@click="show = !show"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
<template>
|
||||
<el-color-picker
|
||||
v-model="settingsStore.theme"
|
||||
:predefine="[
|
||||
'#409EFF',
|
||||
'#1890ff',
|
||||
|
|
|
|||
|
|
@ -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 => {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue