删除页面时递归删除子页面

This commit is contained in:
暮光:城中城
2019-06-15 13:13:22 +08:00
parent dc93ea4395
commit f975e23cd8
6 changed files with 85 additions and 9 deletions

View File

@@ -187,6 +187,7 @@
app = this;
global.vue.$app = this;
this.loadSpaceList();
this.checkSystemUpgrade();
},
methods: {
createWiki() {
@@ -294,7 +295,14 @@
app.nowClickPath = {spaceId: spaceId};
app.choiceSpace = spaceId;
app.doGetPageList(null);
app.$router.push({path: '/home', query: {spaceId: spaceId}});
// 在首页时跳转
try {
if (app.$router.app._route.path == "/home") {
app.$router.push({path: '/home', query: {spaceId: spaceId}});
}
} catch (e) {
console.log(e);
}
}
});
},
@@ -394,6 +402,19 @@
onNewSpaceCancel() {
this.newSpaceDialogVisible = false;
},
checkSystemUpgrade() {
this.common.post(this.apilist1.systemUpgradeInfo, {}, function (json) {
if (!!json.data) {
app.upgradeInfo = json.data;
console.log("zyplayer-doc发现新版本"
+ "\n升级地址" + json.data.upgradeUrl
+ "\n当前版本" + json.data.nowVersion
+ "\n最新版本" + json.data.lastVersion
+ "\n升级内容" + json.data.upgradeContent
);
}
});
},
init() {
},