update:修改配置
This commit is contained in:
@@ -55,7 +55,8 @@ exports.cssLoaders = function (options) {
|
||||
if (options.extract) {
|
||||
return ExtractTextPlugin.extract({
|
||||
use: loaders,
|
||||
fallback: 'vue-style-loader'
|
||||
fallback: 'vue-style-loader',
|
||||
publicPath:'../../',
|
||||
})
|
||||
} else {
|
||||
return ['vue-style-loader'].concat(loaders)
|
||||
|
||||
@@ -43,7 +43,7 @@ module.exports = {
|
||||
// Paths
|
||||
assetsRoot: path.resolve(__dirname, '../dist'),
|
||||
assetsSubDirectory: 'static',
|
||||
assetsPublicPath: '/',
|
||||
assetsPublicPath: './',
|
||||
|
||||
/**
|
||||
* Source Maps
|
||||
|
||||
@@ -4,9 +4,10 @@ import Router from 'vue-router'
|
||||
Vue.use(Router)
|
||||
|
||||
export default new Router({
|
||||
mode:'hash',
|
||||
routes: [
|
||||
{
|
||||
path: '/index',
|
||||
path: '/',
|
||||
name: 'index',
|
||||
component: () => import('../views')
|
||||
},
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
:key="item.id"
|
||||
@click="gotoDetail(item.id)"
|
||||
class="proListBox shadow"
|
||||
v-for="(item,i) in list"
|
||||
v-for="(item) in list"
|
||||
>
|
||||
<div class="proAreaBox">
|
||||
<div class="proArea">{{item.area}}</div>
|
||||
|
||||
Reference in New Issue
Block a user