liuhj před 1 rokem
rodič
revize
ca3f5fb51a
2 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. 1 1
      src/components/Finance/FeesPage.vue
  2. 4 1
      src/plugin.js

+ 1 - 1
src/components/Finance/FeesPage.vue

@@ -100,7 +100,7 @@
             <div class="reviewed"></div>
         </div>
         <el-row>
-            <el-button size="mini" type="primary">返 回</el-button>
+            <el-button size="mini" type="primary" @click="goback()">返 回</el-button>
         </el-row>
     </div>
 </template>

+ 4 - 1
src/plugin.js

@@ -1,10 +1,13 @@
 exports.install = function (Vue, options) {
     Vue.prototype.test = function (){
-        // console.log('test');
+        console.log('test');
         // this.$confirm('此操作将删除该数据, 是否继续?', '提示', {
         //     confirmButtonText: '确定',
         //     cancelButtonText: '取消',
         //     type: 'warning'
         // }).then(() => {})
     };
+    Vue.prototype.goback = function (){//返回上一页
+        window.history.back();
+    };
 };