mod vue2 to vue3

This commit is contained in:
chenhaodong
2026-06-18 01:44:25 +08:00
parent 109204734a
commit d30ff1a362
124 changed files with 951 additions and 2183 deletions
+6 -6
View File
@@ -25,12 +25,12 @@
<script>
import { fetchList } from '@/api/sys/role/role'
import { fetchList } from '@/api/sys/role/role.js'
export default {
name: 'MeetRole',
props: {
value: Array,
modelValue: Array,
default: Array
},
data() {
@@ -43,15 +43,15 @@ export default {
watch: {
// 检测查询变化
value: {
modelValue: {
handler() {
this.values = this.value
this.values = this.modelValue
},
deep: true
}
},
created() {
this.values = this.value
this.values = this.modelValue
this.fetchList()
},
methods: {
@@ -63,7 +63,7 @@ export default {
},
handlerChange(e) {
this.$emit('change', e)
this.$emit('input', e)
this.$emit('update:modelValue', e)
}
}
}