提交 1ecf0663 编写于 作者: H haoxr

fix: 打包报错问题修复

Former-commit-id: 88a4220b
上级 f7965161
......@@ -74,8 +74,7 @@ onBeforeUnmount(() => {
<div
class="right-panel__button"
:style="{
top: buttonTop + 'px',
'background-color': settingsStore.theme
top: buttonTop + 'px'
}"
@click="show = !show"
>
......
<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;
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册