本地運行vue項目因爲警告導致 不能啓動
(Emitted value instead of an instance of Error) Do not use v-for index as key on <transition-group> children, this is the same as not using keys.
意思是在<transition-group>子元素上,不要使用v-for索引作爲鍵,否則與不使用鍵相同
解決方案:
修改 :key="index"
本地運行vue項目因爲警告導致 不能啓動
(Emitted value instead of an instance of Error) Do not use v-for index as key on <transition-group> children, this is the same as not using keys.
意思是在<transition-group>子元素上,不要使用v-for索引作爲鍵,否則與不使用鍵相同
解決方案:
修改 :key="index"
項目中需要按照不同的媒體類型,展示不同的表頭且數據字段也不同。可以增加不同key值解決v-if不生效問題。 <el-table-column prop="author" align="center"
修改ejs文件 將<% if (!process.browser) {%> 改成: <% if (!require(‘process’).browser) { %>