|
|
@@ -415,13 +415,24 @@ export default { |
|
|
|
|
|
|
|
methods: { |
|
|
|
...mapActions(['setCharacters']), |
|
|
|
// aaa() { |
|
|
|
// console.log('aaa') |
|
|
|
// this.$nextTick(() => { |
|
|
|
// // document.getDetailById |
|
|
|
// // this.$refs.CutImgBg.$refs.uploader.clickUpload() |
|
|
|
// this.$refs.CutImgBg.$refs.uploader.beforeRead() |
|
|
|
// 离开页面前 |
|
|
|
// beforeUnloadHandler(event) { |
|
|
|
// let that = this; |
|
|
|
// event.preventDefault(); |
|
|
|
// event.returnValue = ''; |
|
|
|
|
|
|
|
// Dialog.confirm({ |
|
|
|
// message: '弹窗内容' |
|
|
|
// }) |
|
|
|
// .then(async () => { |
|
|
|
// await that.submit(2); // 保存草稿 |
|
|
|
// console.log('保存了'); |
|
|
|
// }) |
|
|
|
// .catch(err => { |
|
|
|
// console.log(err); |
|
|
|
// }); |
|
|
|
// console.log('11111'); |
|
|
|
// window.removeEventListener('beforeunload', this.beforeUnloadHandler); |
|
|
|
// }, |
|
|
|
// 禁止滚动 |
|
|
|
noScroll(e) { |
|
|
@@ -976,6 +987,7 @@ export default { |
|
|
|
this.proportion = 1920 / elementWidth; |
|
|
|
console.log(this.proportion); |
|
|
|
} |
|
|
|
// window.addEventListener('beforeunload', this.beforeUnloadHandler); |
|
|
|
}, |
|
|
|
async beforeDestroy() { |
|
|
|
this.timeOuter = null; // 清除定时器 |
|
|
|