zx 3 years ago
parent 6e23d16861
commit 6d81698ab3

@ -1,11 +1,5 @@
<template>
<!-- vue3.0-->
<router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" v-if="$route.meta.keepAlive" />
</keep-alive>
<component :is="Component" v-if="!$route.meta.keepAlive" />
</router-view>
<router-view></router-view>
</template>
<script>

@ -42,7 +42,11 @@
</el-header>
<tag-view ref="tg"></tag-view>
<el-main class="ly-content">
<router-view></router-view>
<router-view v-slot="{ Component }">
<keep-alive>
<component :is="Component" />
</keep-alive>
</router-view>
</el-main>
</el-container>
</el-container>
@ -83,7 +87,7 @@ export default defineComponent({
.then(() => {
this.$message.success("已退出登录");
this.$router.push("/login");
this.store.commit("setToken", '1');
this.store.commit("setToken", "1");
})
.catch(() => {});
},

@ -8,6 +8,7 @@ const routes = [
redirect: '/questManage',
meta: {
title: '首页',
keepAlive: true
},
children: [
{
@ -16,6 +17,7 @@ const routes = [
component: () => import("@/views/HomePage/index.vue"),
meta: {
title: '首页',
keepAlive: true
}
},
{
@ -25,6 +27,7 @@ const routes = [
redirect: '/questManage/questList',
meta: {
title: '任务管理',
keepAlive: true
},
children: [
{
@ -89,6 +92,7 @@ const routes = [
component: () => import("@/views/StarwayInfo/index.vue"),
meta: {
title: '星途动态',
keepAlive: true
}
},
{

@ -3,10 +3,10 @@
<div class="area-form">
<el-form :inline="true" size="default">
<el-form-item label="用户名">
<el-input clearable v-model="form.account" placeholder="请输入"></el-input>
<el-input clearable v-model="form.name" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="真实姓名">
<el-input clearable v-model="form.name" placeholder="请输入"></el-input>
<el-input clearable v-model="form.realName" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="电话号码">
<el-input clearable v-model="form.tel" placeholder="请输入"></el-input>

Loading…
Cancel
Save