提交 b96cb0a7 编写于 作者: KK's avatar KK

调试

上级 c5fdfed3
......@@ -264,7 +264,6 @@ ${P.getLogicCode(logic, "LOGIC.vue").code}
* @memberof ${srfclassname('${view.name}')}Base
*/
protected async closeView(args: any[]): Promise<any> {
alert(window.history.length);
<#if userCloseView??>
${userCloseView}
<#else>
......
......@@ -8,8 +8,12 @@
let result = await this.cheackChange();
if(result){
if (this.viewDefaultUsage === "routerView") {
this.$store.commit("deletePage", this.$route.fullPath);
this.$router.go(-1);
if(window.history.length == 1 && this.$viewTool.getThirdPartyName()){
this.quitFun();
}else{
this.$store.commit("deletePage", this.$route.fullPath);
this.$router.go(-1);
}
}
if (this.viewDefaultUsage === "actionView") {
this.$emit("close", { status: "success", action: "close", data: args instanceof MouseEvent ? null : args });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册