mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 11:09:16 +08:00
feat: 修改目录
This commit is contained in:
parent
8e00830d7a
commit
af86d1d20a
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
@ -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>
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user