fix:快速查询模块优化

This commit is contained in:
wuzhihao
2024-08-30 15:30:50 +08:00
3 changed files with 17 additions and 13 deletions

View File

@@ -148,16 +148,18 @@ const router = new VueRouter({
})
// 前置路由守卫
router.beforeEach((to, from, next) => {
// to到哪里取 from 从哪里来 next 放行
const token = local.get('token_sd')
if (to.meta.title) { // 修改总标题
document.title = '肉牛溯源系统' + '-' + to.meta.title // routes数组中--meta是关键
}
if (token) { // ok
next()
} else { // no
if (to.path === '/login') {
next()
// to到哪里取 from 从哪里来 next 放行
const token = local.get('token_sd')
if (to.meta.title) { // 修改总标题
document.title = '基芯农育种' + '-' + to.meta.title // routes数组中--meta是关键
}
if (token) { // ok
next()
} else { // no
if (to.path === '/login') {
next()
}
next('/login')
}
next('/login')
}

View File

@@ -88,7 +88,7 @@ export default {
return {
activeIndex: '/',
isCollapse: false,
system_name: '肉牛溯源系统',
system_name: '基芯农育种',
logo: '',
index: 0,
menuList: [], // 菜单权限列表

View File

@@ -135,7 +135,7 @@ export default {
return {
loading: false,
showtable: false,
dialogVisible: false,
dialogVisible: true,
searchForm: {
a: '',
b: '',
@@ -214,7 +214,9 @@ export default {
detailClick() {
this.$router.push('/phylogeneticAnalysis/evolutionaryTree')
},
report() {},
report() {
this.dialogVisible = true
},
// 搜索
searchClick() {
this.loading = true