|
@@ -213,6 +213,7 @@ export default {
|
|
|
methods: {
|
|
|
//页面初始化
|
|
|
pageInit (authId) {
|
|
|
+ this.treeData = []
|
|
|
//获取页面查询参数
|
|
|
// const { query } = this.$route
|
|
|
// authId ? this.pageQuery = this.authQuery : this.pageQuery = query
|
|
@@ -227,7 +228,6 @@ export default {
|
|
|
//获取当前页面权限类型
|
|
|
if (!pageAuthArrs.length) return
|
|
|
//获取tree权限
|
|
|
- this.treeData = []
|
|
|
const pageAuthtrees = pageAuthArrs.filter(item => item.pagetype == 'tree')
|
|
|
if (pageAuthtrees?.length){ this.getPageTreeSetting(pageAuthtrees)}else{
|
|
|
this.treeData = []
|