mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore:
This commit is contained in:
@@ -93,7 +93,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { computed, onErrorCaptured, ref } from "vue";
|
import { computed, onErrorCaptured, onMounted, ref } from "vue";
|
||||||
import FsMenu from "./components/menu/index.jsx";
|
import FsMenu from "./components/menu/index.jsx";
|
||||||
import FsLocale from "./components/locale/index.vue";
|
import FsLocale from "./components/locale/index.vue";
|
||||||
import FsUserInfo from "./components/user-info/index.vue";
|
import FsUserInfo from "./components/user-info/index.vue";
|
||||||
@@ -143,6 +143,10 @@ const settingStore = useSettingStore();
|
|||||||
const siteInfo = computed(() => {
|
const siteInfo = computed(() => {
|
||||||
return settingStore.siteInfo;
|
return settingStore.siteInfo;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
onMounted(async () => {
|
||||||
|
await settingStore.checkUrlBound();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import "../style/theme/index.less";
|
@import "../style/theme/index.less";
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ export const useSettingStore = defineStore({
|
|||||||
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
this.initSiteInfo(allSettings.siteInfo || {});
|
this.initSiteInfo(allSettings.siteInfo || {});
|
||||||
await this.checkUrlBound();
|
|
||||||
},
|
},
|
||||||
initSiteInfo(siteInfo: SiteInfo) {
|
initSiteInfo(siteInfo: SiteInfo) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
|||||||
@@ -61,6 +61,8 @@ export class AutoInitSite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
logger.info('初始化站点完成');
|
logger.info('初始化站点完成');
|
||||||
|
// const pkg = require('../../../package.json');
|
||||||
|
// logger.info(`当前版本为:${pkg.version}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
async startOptimizeDb() {
|
async startOptimizeDb() {
|
||||||
|
|||||||
Reference in New Issue
Block a user