chore: fix surge deploy (#396)

* chore: fix surge deploy

* chore: fix type
This commit is contained in:
yuyang 2023-01-12 17:08:22 +08:00 committed by GitHub
parent 61abcdd28e
commit 56189daa3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 9 deletions

3
.env
View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=123
# 打包路径 根据项目不同按需配置
VITE_BASE_URL = ./
VITE_BASE_URL = /

View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=456
# 打包路径
VITE_BASE_URL = ./
VITE_BASE_URL = /

View File

@ -1,3 +1,2 @@
VITE_SOME_KEY=123
# 打包路径 根据项目不同按需配置
VITE_BASE_URL = https://static.tdesign.tencent.com/starter/vue-next/

View File

@ -1,6 +1,6 @@
<template>
<div :class="layoutCls">
<t-head-menu :class="menuCls" :theme="theme" expand-type="popup" :value="active">
<t-head-menu :class="menuCls" :theme="menuTheme" expand-type="popup" :value="active">
<template #logo>
<span v-if="showLogo" class="header-logo-container" @click="handleNav('/dashboard/base')">
<logo-full class="t-logo" />
@ -80,7 +80,7 @@ import MenuContent from './MenuContent.vue';
const props = defineProps({
theme: {
type: String,
default: '',
default: 'light',
},
layout: {
type: String,
@ -132,7 +132,7 @@ const menuCls = computed(() => {
},
];
});
const menuTheme = computed(() => props.theme as 'light' | 'dark');
const changeCollapsed = () => {
settingStore.updateConfig({
isSidebarCompact: !settingStore.isSidebarCompact,

View File

@ -24,7 +24,7 @@
<t-step-item title="申请提交" content="已于12月21日提交" />
<t-step-item title="电子发票" content="预计13个工作日" />
<t-step-item title="发票已邮寄" content="电子发票开出后7个工作日联系" />
<t-step-item title="完成" content />
<t-step-item title="完成" content="" />
</t-steps>
</t-row>
</t-card>