@@ -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>
</template>
@@ -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();
+ };