Commit 989a2e5d by 无尘

fix: 修改加载

parent 54d2fe85
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-12-02 11:30:57
* @LastEditTime: 2020-12-02 15:37:44
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
......@@ -303,7 +303,8 @@ export default {
.then(res => {
that.$message.success('保存成功');
that.$store.dispatch('clearStoreData');
that.$router.go(-1);
const { applicationId, tab, performanceYm } = that.$route.query;
that.$router.push(`/target-store?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`);
})
.finally(() => that.loading = false);
},
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-12-02 11:23:12
* @LastEditTime: 2020-12-02 15:38:38
-->
<template>
<div class="common-app-right">
......@@ -199,7 +199,8 @@ export default {
that.loadSave = false;
if (res.code == '0000') {
that.$message.success('保存成功');
that.$router.go(-1);
const { applicationId, tab, performanceYm } = that.$route.query;
that.$router.push(`/target-store?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`);
return;
}
that.$message.error(res.message || '接口异常');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment