优化
This commit is contained in:
parent
baf69e397a
commit
8bbe549b0c
@ -26,8 +26,10 @@ export default {
|
|||||||
const rules = ref('')
|
const rules = ref('')
|
||||||
|
|
||||||
const handleSave = async() => {
|
const handleSave = async() => {
|
||||||
await overwirteDislikeInfo(rules.value)
|
if (rules.value.trim() != dislikeInfo.rules.trim()) {
|
||||||
emit('onRuleUpdate')
|
await overwirteDislikeInfo(rules.value)
|
||||||
|
emit('onRuleUpdate')
|
||||||
|
}
|
||||||
emit('update:modelValue', false)
|
emit('update:modelValue', false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user