Commit 98cf29a1 by tangjiale

更新代码

parent ef6af7d6
......@@ -28,16 +28,6 @@ const envValue = process.env.ENV_CONFIG;
const env = envMap[ envValue ];
const getPkgVersion = v => {
return {
test: new RegExp(v),
enforce: true,
name: v + '-' + (pkg.dependencies[ v ] ? pkg.dependencies[ v ].replace(
/[^0-9 | \.]/ig, '') : ''),
chunks: 'all'
};
};
module.exports = {
mode: 'universal',
......
{
"name": "test",
"name": "ssr-pc",
"version": "1.0.0",
"description": "A Eye7 Web Project",
"description": "测试",
"private": true,
"scripts": {
"dev-ssr": "cross-env ENV_CONFIG=dev ssr=true nuxt -o --port=3001",
"dev-ssr-prod": "cross-env IS_LOCAL=1 ENV_CONFIG=pro ssr=true nuxt -o --port=3001",
"build": "cross-env ENV_CONFIG=dev ssr=true nuxt build -o --port=3001",
"start": "cross-env ENV_CONFIG=dev nuxt start --port=3001",
"build": "cross-env ENV_CONFIG=dev ssr=true nuxt build -o --port=3001 && npm start",
"build-prod": "cross-env ENV_CONFIG=pro ssr=true nuxt build -o --port=3001"
},
"dependencies": {
"@nuxtjs/axios": "^5.8.0",
"autoprefixer": "^9.7.2",
"babel-polyfill": "6.26.0",
"js-cookie": "2.2.1",
"cookie-universal-nuxt": "2.0.19",
"cross-env": "5.2.0",
"js-cookie": "2.2.1",
"less": "3.10.3",
"less-loader": "5.0.0",
"lib-flexible": "0.3.2",
"node-cmd": "^5.0.0",
"nuxt": "2.9.2",
"postcss-loader": "3.0.0",
"postcss-px2rem": "0.3.0",
......
......@@ -4,7 +4,7 @@
<br/><br/>
<div @click="loginUrl">
cookie登录
cookie登录???????????
</div>
</div>
</template>
......@@ -20,7 +20,7 @@
export default {
async asyncData ({app,query,params,redirect,returnData}) {
console.log('参数是什么',params)
console.log('参数',params)
console.log(app.$axiosApi)
let ip = await app.$axiosApi('/sport/new/screen/getMidUrl',{regionCode:430103000000},{})
......
var cmd=require('node-cmd'); cmd.run('npm start');
//pm2 start --name 'ssr-pc' ./start.js
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