mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 修改目录
This commit is contained in:
parent
8e00830d7a
commit
af86d1d20a
@ -40,10 +40,10 @@ func Init() {
|
|||||||
}
|
}
|
||||||
global.CONF = serverConfig
|
global.CONF = serverConfig
|
||||||
global.CONF.BaseDir = baseDir
|
global.CONF.BaseDir = baseDir
|
||||||
global.CONF.System.DataDir = global.CONF.BaseDir + "/1panel/data"
|
global.CONF.System.DataDir = global.CONF.BaseDir + "/1panel"
|
||||||
global.CONF.System.Cache = global.CONF.BaseDir + "/1panel/data/cache"
|
global.CONF.System.Cache = global.CONF.System.DataDir + "/cache"
|
||||||
global.CONF.System.Backup = global.CONF.BaseDir + "/1panel/data/backup"
|
global.CONF.System.Backup = global.CONF.System.DataDir + "/backup"
|
||||||
global.CONF.System.DbPath = global.CONF.BaseDir + "/1panel/data/db"
|
global.CONF.System.DbPath = global.CONF.System.DataDir + "/db"
|
||||||
global.CONF.System.LogPath = global.CONF.BaseDir + "/1panel/log"
|
global.CONF.System.LogPath = global.CONF.System.DataDir + "/log"
|
||||||
global.Viper = v
|
global.Viper = v
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,9 @@ const buttons = [
|
|||||||
];
|
];
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
SearchAppInstalled({ update: true, page: 1, pageSize: 100 }).then((res) => {
|
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;
|
showButton.value = true;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<span>{{ $t('home.appInstalled') }}</span>
|
<span>{{ $t('home.appInstalled') }}</span>
|
||||||
<div class="count">
|
<div class="count">
|
||||||
<span @click="goRouter('/apps')">
|
<span @click="goRouter('/apps/installed')">
|
||||||
{{ baseInfo?.appInstalldNumber }}
|
{{ baseInfo?.appInstalldNumber }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
@ -37,7 +37,7 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|||||||
open: viteEnv.VITE_OPEN,
|
open: viteEnv.VITE_OPEN,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/v1': {
|
'/api/v1': {
|
||||||
target: 'http://172.16.10.181:9999/',
|
target: 'http://localhost:9999/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user