el-select下拉框选中并且浏览器开发工具显示赋值成功,前台页面就是不显示,这是怎么回事呐?
以下是解决办法:
vue2中可以在change事件中使用如下代码:
this.$forceUpdate();
vue3中使用:
import {getCurrentInstance } from 'vue'
const { ctx} = getCurrentInstance()
ctx.$forceUpdate()
el-select下拉框选中并且浏览器开发工具显示赋值成功,前台页面就是不显示,这是怎么回事呐?
以下是解决办法:
vue2中可以在change事件中使用如下代码:
this.$forceUpdate();
vue3中使用:
import {getCurrentInstance } from 'vue'
const { ctx} = getCurrentInstance()
ctx.$forceUpdate()