diff --git a/openRenamerFront/src/App.vue b/openRenamerFront/src/App.vue index 111aaf4..6cccf5c 100644 --- a/openRenamerFront/src/App.vue +++ b/openRenamerFront/src/App.vue @@ -45,14 +45,14 @@ export default { activeIndex: location.pathname, }; }, + async beforeCreate() { + window.token = localStorage.getItem("token"); + window.isWindows = await httpUtil.get("/file/isWindows"); + }, async created() { //获取最新版本 let config = await httpUtil.get("https://s3.fleyx.com/picbed/openRenamer/config.json"); this.latestVersion = config.version; - window.token = localStorage.getItem("token"); - window.isWindows = await httpUtil.get("/file/isWindows"); - console.log(this.$route); - console.log(this.activeIndex); }, async mounted() { console.log(this.$route); diff --git a/openRenamerFront/src/views/home/Home.vue b/openRenamerFront/src/views/home/Home.vue index 79154d6..26e2006 100644 --- a/openRenamerFront/src/views/home/Home.vue +++ b/openRenamerFront/src/views/home/Home.vue @@ -22,7 +22,7 @@