|
@@ -128,7 +128,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { watch, ref } from "vue";
|
|
|
+import { watch, ref, onMounted } from "vue";
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
import { useDark } from "@vueuse/core";
|
|
|
import { storeToRefs } from "pinia";
|
|
@@ -222,6 +222,11 @@ watch(route, (v) => {
|
|
|
(v.meta.hideTopNavBgColor || Boolean(v.meta.topNavBgColor)) ?? true;
|
|
|
bgColor.value = v.meta.topNavBgColor ?? "";
|
|
|
});
|
|
|
+
|
|
|
+// 目前没有公众号,先默认登录
|
|
|
+onMounted(() => {
|
|
|
+ handleLogin();
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|