clay commit : bug基本修复完成
This commit is contained in:
@@ -345,12 +345,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|
||||||
|
|
||||||
let roles = JSON.parse(sessionStorage.getItem("roles"))
|
let roles = JSON.parse(sessionStorage.getItem("roles"))
|
||||||
console.log(roles,"roles")
|
console.log(roles,"roles")
|
||||||
for (const role of roles) {
|
for (const role of roles) {
|
||||||
@@ -359,9 +356,6 @@ export default {
|
|||||||
this.isAdmin = true
|
this.isAdmin = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
getArticleNav().then(res=>{
|
getArticleNav().then(res=>{
|
||||||
let data = res.data
|
let data = res.data
|
||||||
this.articleTypeOptions = data
|
this.articleTypeOptions = data
|
||||||
@@ -385,14 +379,17 @@ export default {
|
|||||||
this.statusOptions = response.data
|
this.statusOptions = response.data
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// activated() {
|
watch: {
|
||||||
// this.getList()
|
$route(now, old) {
|
||||||
// },
|
// 判断逻辑
|
||||||
|
console.log(now,"new")
|
||||||
|
if (now.name == 'Article') {
|
||||||
|
// 需要执行的方法
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/** 查询文章列表 */
|
/** 查询文章列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
|||||||
Reference in New Issue
Block a user