ソースを参照

返回上一页

gangyj 3 年 前
コミット
c243f47a82
1 ファイル変更6 行追加1 行削除
  1. 6 1
      src/views/manager/projectinfo/editElement/editElement.vue

+ 6 - 1
src/views/manager/projectinfo/editElement/editElement.vue

@@ -67,7 +67,7 @@
             v-show="AddNewElementField ==''"
             style="width:160px;position: fixed;bottom: 20px; right:20px;"
           >
-            <el-button type="info">取消</el-button>
+            <el-button type="info" @click="toBack">取消</el-button>
             <el-button type="primary">保存</el-button>
           </div>
         </el-col>
@@ -519,6 +519,11 @@ export default {
         }
       });
     },
+
+    // 返回上一页
+    toBack(){
+      this.$router.go(-1);
+    }
   },
   watch: {
     'options' () {