-- 环境更改1

This commit is contained in:
yuping
2022-12-14 23:55:02 +08:00
parent 12c3a1ce72
commit fd19dd049c

View File

@@ -19,7 +19,7 @@
</div>
</template>
<script>
import { computed, defineComponent, ref, watch } from "vue";
import { computed, defineComponent, ref } from "vue";
import { useRouter, useRoute } from "vue-router";
import { useStore } from "vuex";
import NavLeft from "@/components/NavLeft";
@@ -48,12 +48,12 @@ export default defineComponent({
const routes = computed(() => {
return router.getRoutes().filter((e) => e.meta?.isLink);
});
watch(
() => route.path,
() => {
route.path === "/login" && (isLogin.value = true);
}
);
// watch(
// () => route.path,
// () => {
// route.path === "/login" && (isLogin.value = true);
// }
// );
const currentRouteName = computed(() => route.name);
function init() {