mirror of https://github.com/certd/certd
Merge branch 'refs/heads/v2' into v2-dev
commit
67ba17286c
|
@ -93,7 +93,7 @@
|
|||
</template>
|
||||
|
||||
<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 FsLocale from "./components/locale/index.vue";
|
||||
import FsUserInfo from "./components/user-info/index.vue";
|
||||
|
@ -146,6 +146,10 @@ const sysPublic = computed(() => {
|
|||
const siteInfo = computed(() => {
|
||||
return settingStore.siteInfo;
|
||||
});
|
||||
|
||||
onMounted(async () => {
|
||||
await settingStore.checkUrlBound();
|
||||
});
|
||||
</script>
|
||||
<style lang="less">
|
||||
@import "../style/theme/index.less";
|
||||
|
|
|
@ -135,7 +135,6 @@ export const useSettingStore = defineStore({
|
|||
_.merge(this.plusInfo, allSettings.plusInfo || {});
|
||||
//@ts-ignore
|
||||
this.initSiteInfo(allSettings.siteInfo || {});
|
||||
await this.checkUrlBound();
|
||||
},
|
||||
initSiteInfo(siteInfo: SiteInfo) {
|
||||
//@ts-ignore
|
||||
|
|
|
@ -63,6 +63,8 @@ export class AutoInitSite {
|
|||
}
|
||||
|
||||
logger.info('初始化站点完成');
|
||||
// const pkg = require('../../../package.json');
|
||||
// logger.info(`当前版本为:${pkg.version}`);
|
||||
}
|
||||
|
||||
async startOptimizeDb() {
|
||||
|
|
Loading…
Reference in New Issue