|
@@ -29,7 +29,8 @@ var vm = new Vue({
|
|
ordinarykc: 0
|
|
ordinarykc: 0
|
|
},
|
|
},
|
|
scrollTop: 0, // 记录滚动高度
|
|
scrollTop: 0, // 记录滚动高度
|
|
- isenterprise:false
|
|
|
|
|
|
+ isenterprise:false,
|
|
|
|
+ toWhere: ''
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
// 关键词是否达到上限
|
|
// 关键词是否达到上限
|
|
@@ -81,6 +82,7 @@ var vm = new Vue({
|
|
},
|
|
},
|
|
created: function () {
|
|
created: function () {
|
|
let identification = getParam('pagesource')
|
|
let identification = getParam('pagesource')
|
|
|
|
+ this.toWhere = utils.getParam('to')
|
|
this.isenterprise = identification=='enterprise' ? true:false
|
|
this.isenterprise = identification=='enterprise' ? true:false
|
|
this.restoreState()
|
|
this.restoreState()
|
|
this.getSwitchType()
|
|
this.getSwitchType()
|
|
@@ -699,7 +701,11 @@ var vm = new Vue({
|
|
})
|
|
})
|
|
},
|
|
},
|
|
completeToEdit: function () {
|
|
completeToEdit: function () {
|
|
- history.back()
|
|
|
|
|
|
+ if (this.toWhere) {
|
|
|
|
+ location.replace(this.toWhere)
|
|
|
|
+ } else {
|
|
|
|
+ history.back()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 恢复数据
|
|
// 恢复数据
|
|
restoreState: function () {
|
|
restoreState: function () {
|