vue报错
[Vue warn]: data functions should return an object:
[Vue warn]Property "customClass" must be accessed with "$data.customClass" because properties starting with "$" or "_" are not proxied in the Vue instance to prevent conflicts with Vue internals
原因使用 ElementUI 的 this.$message.error(res); 导致。message.error()传入的类型错误,
应该为obj、string传入了array