Bootstrap

Property or method “XXX“ is not defined on the instance but referenced during render. Make sure that

Property or method "loading" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

Property or method "dict" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

如上两个报错,都是因为变量未定义,解决办法:

 data() {
      return {
        // 遮罩层定义在这里即可
        loading: true,
        // 日志表格数据
        xxxxxxList:[],
        // 是否显示弹出层
        open: false,
        // 表单参数
        form: {},
        // 表单校验
        rules: {},
        queryParams: {
          pageNum: 1,
          pageSize: 10,
          xxxx: null
        },
      };
  export default {
    name: "xxxxx",
    dicts: ['sys_xxx_dict'],
    data() {
      return {

;