Merge branch 'feature/comment-0620-ch' into msb_test

fix/0701-ch
ch 3 years ago
commit 0ce7d20886

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-06-20 14:55:54 * @Date: 2022-06-20 14:55:54
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-30 17:14:24 * @LastEditTime: 2022-06-30 20:32:18
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -70,7 +70,8 @@ export default {
}, },
beforeRouteLeave(to, from, next) { 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({ uni.showModal({
content : '你正在进行商品评价,退出后评价的内容将不保存!', content : '你正在进行商品评价,退出后评价的内容将不保存!',
cancelColor : '#999', cancelColor : '#999',

Loading…
Cancel
Save