feat: 修改目录

This commit is contained in:
zhengkunwang223 2023-02-10 09:58:14 +08:00 committed by zhengkunwang223
parent 8e00830d7a
commit af86d1d20a
4 changed files with 10 additions and 8 deletions

View File

@ -40,10 +40,10 @@ func Init() {
}
global.CONF = serverConfig
global.CONF.BaseDir = baseDir
global.CONF.System.DataDir = global.CONF.BaseDir + "/1panel/data"
global.CONF.System.Cache = global.CONF.BaseDir + "/1panel/data/cache"
global.CONF.System.Backup = global.CONF.BaseDir + "/1panel/data/backup"
global.CONF.System.DbPath = global.CONF.BaseDir + "/1panel/data/db"
global.CONF.System.LogPath = global.CONF.BaseDir + "/1panel/log"
global.CONF.System.DataDir = global.CONF.BaseDir + "/1panel"
global.CONF.System.Cache = global.CONF.System.DataDir + "/cache"
global.CONF.System.Backup = global.CONF.System.DataDir + "/backup"
global.CONF.System.DbPath = global.CONF.System.DataDir + "/db"
global.CONF.System.LogPath = global.CONF.System.DataDir + "/log"
global.Viper = v
}

View File

@ -33,7 +33,9 @@ const buttons = [
];
onMounted(() => {
SearchAppInstalled({ update: true, page: 1, pageSize: 100 }).then((res) => {
buttons[2].count = res.data.items.length;
if (res.data.items) {
buttons[2].count = res.data.items.length;
}
showButton.value = true;
});
});

View File

@ -37,7 +37,7 @@
<el-col :span="6">
<span>{{ $t('home.appInstalled') }}</span>
<div class="count">
<span @click="goRouter('/apps')">
<span @click="goRouter('/apps/installed')">
{{ baseInfo?.appInstalldNumber }}
</span>
</div>

View File

@ -37,7 +37,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
open: viteEnv.VITE_OPEN,
proxy: {
'/api/v1': {
target: 'http://172.16.10.181:9999/',
target: 'http://localhost:9999/',
changeOrigin: true,
},
},