Skip to content

Commit f716a1e

Browse files
author
zhongzhenlong
committed
更新截图
1 parent 08a1aab commit f716a1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+9
-55639
lines changed

.babelrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,7 @@
55
],
66
"plugins": [
77
"transform-runtime",
8-
"transform-vue-jsx",
9-
[
10-
"component",
11-
[
12-
{
13-
"libraryName": "element-ui",
14-
"styleLibraryName": "~src/css/theme"
15-
}
16-
]
17-
]
8+
"transform-vue-jsx"
189
],
1910
"comments": false,
2011
"env": {

build/webpack.base.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ module.exports = {
7373
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
7474
loader: 'url-loader',
7575
options: {
76-
limit: 10240,
76+
limit: 1024,
7777
name: utils.assetsPath('fonts/[name].[ext]')
7878
}
7979
}

config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ module.exports = {
77
index: path.resolve(__dirname, '../dist/index.html'),
88
assetsRoot: path.resolve(__dirname, '../dist'),
99
assetsSubDirectory: 'static',
10-
assetsPublicPath: '/',
11-
// assetsPublicPath: '/Vue-Admin/',
10+
// assetsPublicPath: '/',
11+
assetsPublicPath: '/Vue-Admin/',
1212
productionSourceMap: true,
1313
// Gzip off by default as many popular static hosts such as
1414
// Surge or Netlify already gzip all static assets for you.

package.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dev": "node build/dev-server.js",
99
"build": "node build/build.js",
1010
"lint": "eslint --ext .js,.vue src",
11-
"mock": "babel-node build/mock-server.js --presets es2015,stage-2",
11+
"mock": "babel-node build/mock-server.js --presets es2015,stage-0",
1212
"mockdev": "npm run dev & npm run mock"
1313
},
1414
"dependencies": {
@@ -48,8 +48,6 @@
4848
"connect-history-api-fallback": "^1.3.0",
4949
"copy-webpack-plugin": "^4.0.1",
5050
"css-loader": "^0.28.7",
51-
"element-theme": "^0.7.2",
52-
"element-theme-default": "^1.4.3",
5351
"errorhandler": "^1.5.0",
5452
"eslint": "^4.6.1",
5553
"eslint-config-standard": "^10.2.1",
@@ -94,15 +92,5 @@
9492
"> 1%",
9593
"last 2 versions",
9694
"not ie <= 8"
97-
],
98-
"element-theme": {
99-
"browsers": [
100-
"ie > 9",
101-
"last 2 versions"
102-
],
103-
"out": "./src/css/theme",
104-
"config": "./src/css/element-variables.css",
105-
"theme": "element-theme-default",
106-
"minimize": false
107-
}
95+
]
10896
}

src/App.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
</template>
2323

2424
<script>
25-
import 'babel-polyfill'
2625
import Vue from 'vue'
2726
import sideMenu from './components/sideMenu.vue'
2827
import impHeader from "./pages/layout/header.vue"

src/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const CONTEXT = './api';
2-
// export const CONTEXT = './Vue-Admin';
1+
// export const CONTEXT = './api';
2+
export const CONTEXT = './Vue-Admin';
33

44
export const LOGIN = CONTEXT + '/login';
55
export const LOGOUT = CONTEXT + '/logout';

0 commit comments

Comments
 (0)