feat:增加提交审核以及撤回审核

This commit is contained in:
lixg
2022-11-29 13:18:49 +08:00
parent d51df54728
commit 76bc15d926
10 changed files with 265 additions and 189 deletions

View File

@@ -15,11 +15,11 @@
</div>
</div>
<div id="container" v-if="isLogin">
<router-view/>
<router-view />
</div>
</template>
<script>
import {computed, defineComponent, ref, watch} from "vue";
import { computed, defineComponent, ref, watch } from "vue";
import { useRouter, useRoute } from "vue-router";
import { useStore } from "vuex";
import NavLeft from "@/components/NavLeft";
@@ -39,15 +39,19 @@ export default defineComponent({
const router = useRouter();
const route = useRoute();
const store = useStore();
const isLogin = ref(false)
const isLogin = ref(false);
// console.log("router", router.getRoutes(), route);
console.log("版本0.01------------");
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);