Browse Source

feat: 修改目录

pull/127/head
zhengkunwang223 2 years ago committed by zhengkunwang223
parent
commit
af86d1d20a
  1. 10
      backend/init/viper/viper.go
  2. 4
      frontend/src/views/app-store/index.vue
  3. 2
      frontend/src/views/home/index.vue
  4. 2
      frontend/vite.config.ts

10
backend/init/viper/viper.go

@ -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
}

4
frontend/src/views/app-store/index.vue

@ -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;
});
});

2
frontend/src/views/home/index.vue

@ -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>

2
frontend/vite.config.ts

@ -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…
Cancel
Save