Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-05-13 11:09:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
451a2249dc6781e04df2e3d41391e65df5a1c660
451a2249
1 parent
13d496e0
fix 微信留言框弹出兼容性问题
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
src/components/CommentBox/index.vue
src/components/CommentBox/index.vue
View file @
451a224
...
...
@@ -53,11 +53,13 @@
import icon_y from '@images/y.png'
import { Toast } from 'vant';
import { ref } from 'vue'
import { ref
, watch
} from 'vue'
// const props = defineProps({
// showPopup: Boolean
// })
const props = defineProps({
showPopup: Boolean,
type: String,
replayUser: String
})
const emit = defineEmits(['on-close', 'on-submit']);
...
...
@@ -78,11 +80,15 @@ const submitComment = () => {
Toast.fail('留言不能为空');
}
}
// 监听弹出框
watch(() => props.showPopup, (v) => {
show.value = v
})
</script>
<script>
export default {
props: ['showPopup', 'type', 'replayUser'],
data () {
return {
}
...
...
@@ -90,11 +96,6 @@ export default {
mounted () {
},
watch: {
showPopup (value, pre) {
if (value) {
this.show = value;
}
}
},
methods: {
}
...
...
Please
register
or
login
to post a comment