Commit 906f0bc6 authored by caicaicai's avatar caicaicai

修改

parent 352d24df
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
</div> </div>
</template> </template>
<script> <script>
......
...@@ -93,8 +93,8 @@ export const constantRouterMap = [ ...@@ -93,8 +93,8 @@ export const constantRouterMap = [
]; ];
export default new Router({ export default new Router({
// mode: 'hash', mode: 'hash',
mode: "history", //mode: "history",
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap routes: constantRouterMap
}); });
...@@ -53,8 +53,12 @@ module.exports = { ...@@ -53,8 +53,12 @@ module.exports = {
} }
}, },
configureWebpack: { configureWebpack: {
// provide the app's title in webpack's name field, so that output: {
// it can be accessed in index.html to inject the correct title. sourcePrefix: ' '
},
amd: {
toUrlUndefined: true
},
plugins: [ plugins: [
// new CopyWebpackPlugin([{ // new CopyWebpackPlugin([{
// from: "./static", // from: "./static",
...@@ -79,9 +83,11 @@ module.exports = { ...@@ -79,9 +83,11 @@ module.exports = {
}, },
name: name, name: name,
resolve: { resolve: {
extensions : ['.js', '.vue', '.json'],
alias: { alias: {
'@': resolve('src'), '@': resolve('src'),
'@crud': resolve('src/components/Crud'), '@crud': resolve('src/components/Crud'),
'vue$': 'vue/dist/vue.esm.js',
'cesium': path.resolve(__dirname, cesiumSource) 'cesium': path.resolve(__dirname, cesiumSource)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment