Skip to content

Commit 3ee048a

Browse files
committed
Update Demo
1 parent 6ff134e commit 3ee048a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Vue + ElementUI 后台管理系统框架
22

3+
## **Demo**
4+
[https://harsima.github.io/vue-backend](https://harsima.github.io/vue-backend)
5+
36
## **相关教程**
47
- [Vue + ElementUI 手撸后台管理网站基本框架(零)前言篇](http://blog.csdn.net/harsima/article/details/77949609)
58
- [Vue + ElementUI 手撸后台管理网站基本框架(一)创建项目](http://blog.csdn.net/harsima/article/details/77949623)

build/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ exports.cssLoaders = function(options) {
5050
return ExtractTextPlugin.extract({
5151
use: loaders,
5252
fallback: 'vue-style-loader',
53-
publicPath: '/'
53+
publicPath: '../../'
5454
})
5555
} else {
5656
return ['vue-style-loader'].concat(loaders)

config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
index: path.resolve(__dirname, '../dist/index.html'),
1010
assetsRoot: path.resolve(__dirname, '../dist'),
1111
assetsSubDirectory: 'static',
12-
assetsPublicPath: '/',
12+
assetsPublicPath: './',
1313
productionSourceMap: false,
1414
// Gzip off by default as many popular static hosts such as
1515
// Surge or Netlify already gzip all static assets for you.

src/router/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ NProgress.configure({ showSpinner: false });
4141
Vue.use(VueRouter)
4242

4343
const router = new VueRouter({
44-
mode: 'history',
44+
mode: 'hash',
4545
routes: staticRoute
4646
})
4747

0 commit comments

Comments
 (0)