Skip to content

Commit

Permalink
fix: 开发模式关闭 ssr 模式 && 取消严格版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
ihoey committed Oct 15, 2019
1 parent ce5cdbc commit 5a0bfee
Show file tree
Hide file tree
Showing 3 changed files with 1,082 additions and 661 deletions.
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,41 +17,41 @@
"version": "./node_modules/.bin/conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
},
"dependencies": {
"axios": "0.19.0",
"axios": "^0.19.0",
"element-ui": "^2.9.1",
"koa": "2.7.0",
"koa-cookie": "1.0.0",
"koa-morgan": "1.0.1",
"koa-mount": "4.0.0",
"koa-static": "5.0.0",
"koa": "^2.7.0",
"koa-cookie": "^1.0.0",
"koa-morgan": "^1.0.1",
"koa-mount": "^4.0.0",
"koa-static": "^5.0.0",
"normalize.css": "^8.0.1",
"vue": "2.6.10",
"vue-router": "3.0.6",
"vue-server-renderer": "2.6.10",
"vuex": "3.1.0",
"vuex-router-sync": "5.0.0"
"vue": "^2.6.10",
"vue-router": "^3.0.6",
"vue-server-renderer": "^2.6.10",
"vuex": "^3.1.0",
"vuex-router-sync": "^5.0.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "3.6.0",
"@vue/cli-plugin-eslint": "3.6.0",
"@vue/cli-service": "3.6.0",
"@vue/eslint-config-prettier": "4.0.1",
"babel-eslint": "10.0.1",
"chalk": "2.4.2",
"@vue/cli-plugin-babel": "^3.6.0",
"@vue/cli-plugin-eslint": "^3.6.0",
"@vue/cli-service": "^3.6.0",
"@vue/eslint-config-prettier": "^4.0.1",
"babel-eslint": "^10.0.1",
"chalk": "^2.4.2",
"commitizen": "^3.1.1",
"concurrently": "4.1.0",
"concurrently": "^4.1.0",
"conventional-changelog-cli": "^2.0.23",
"cross-env": "5.2.0",
"eslint": "5.16.0",
"eslint-plugin-vue": "5.2.2",
"koa-proxies": "0.8.1",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.2.2",
"koa-proxies": "^0.8.1",
"lint-staged": "^8.1.7",
"lodash.merge": "4.6.2",
"lru-cache": "5.1.1",
"node-sass": "4.11.0",
"sass-loader": "7.1.0",
"vue-template-compiler": "2.6.10",
"webpack-node-externals": "1.7.2"
"lodash.merge": "^4.6.2",
"lru-cache": "^5.1.1",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.6.10",
"webpack-node-externals": "^1.7.2"
},
"engines": {
"node": ">=8.9",
Expand Down
2 changes: 1 addition & 1 deletion server/ssr-page-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// }]

// 控制是否开启服务端渲染
const isEnableServerRender = true
const isEnableServerRender = process.env.NODE_ENV !== 'dev'
// 控制是否开启用户校验服务端渲染,开启 用户登录走前端渲染,未登录走服务端渲染
const isEnableUserLoginCheck = false

Expand Down
Loading

0 comments on commit 5a0bfee

Please sign in to comment.