上传预览

feature/comment-0620-ch
ch 3 years ago
parent 4880836a27
commit 4011d2d49c

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-06-20 14:55:54
* @LastEditors: ch
* @LastEditTime: 2022-06-30 17:14:24
* @LastEditTime: 2022-06-30 20:32:18
* @Description: file content
-->
<template>
@ -70,7 +70,8 @@ export default {
},
beforeRouteLeave(to, from, next) {
if(this.list.findIndex(i => i.isEdit) > -1 && to.aliasPath != '/goodsCommentPreview'){
if(this.list.findIndex(i => i.isEdit) > -1 &&
!(to.aliasPath == '/goodsCommentPreview' || to.fullPath == '/preview-image')){
uni.showModal({
content : '你正在进行商品评价,退出后评价的内容将不保存!',
cancelColor : '#999',

Loading…
Cancel
Save