直入主題
修改mode之後,鏈接就不需要帶#號了
const router = new VueRouter({
mode: 'history',
routes: [...]
})
nginx配置
location /wx/ {
try_files $uri $uri/ /wx/index.html;
}
直入主題
修改mode之後,鏈接就不需要帶#號了
const router = new VueRouter({
mode: 'history',
routes: [...]
})
nginx配置
location /wx/ {
try_files $uri $uri/ /wx/index.html;
}
項目中需要按照不同的媒體類型,展示不同的表頭且數據字段也不同。可以增加不同key值解決v-if不生效問題。 <el-table-column prop="author" align="center"
修改ejs文件 將<% if (!process.browser) {%> 改成: <% if (!require(‘process’).browser) { %>