Commit 906f0bc6 authored by caicaicai's avatar caicaicai

修改

parent 352d24df
......@@ -11,7 +11,6 @@
</div>
</template>
<script>
......
......@@ -93,8 +93,8 @@ export const constantRouterMap = [
];
export default new Router({
// mode: 'hash',
mode: "history",
mode: 'hash',
//mode: "history",
scrollBehavior: () => ({ y: 0 }),
routes: constantRouterMap
});
......@@ -53,8 +53,12 @@ module.exports = {
}
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
output: {
sourcePrefix: ' '
},
amd: {
toUrlUndefined: true
},
plugins: [
// new CopyWebpackPlugin([{
// from: "./static",
......@@ -79,9 +83,11 @@ module.exports = {
},
name: name,
resolve: {
extensions : ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
'@crud': resolve('src/components/Crud'),
'vue$': 'vue/dist/vue.esm.js',
'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