Showing
4 changed files
with
6 additions
and
6 deletions
@@ -9,7 +9,6 @@ const serverConfig = require('./webpack.server.conf'); | @@ -9,7 +9,6 @@ const serverConfig = require('./webpack.server.conf'); | ||
9 | const pkg = require('../package.json'); | 9 | const pkg = require('../package.json'); |
10 | const distDir = path.join(__dirname, `../public/dist/${pkg.name}`); | 10 | const distDir = path.join(__dirname, `../public/dist/${pkg.name}`); |
11 | 11 | ||
12 | -console.log(clientConfig.output.path) | ||
13 | 12 | ||
14 | rm(path.join(clientConfig.output.path), err => { | 13 | rm(path.join(clientConfig.output.path), err => { |
15 | if (err) { | 14 | if (err) { |
1 | const config = { | 1 | const config = { |
2 | development: { | 2 | development: { |
3 | - axiosBaseUrl: 'http://m.yohoblk.com/', | 3 | + axiosBaseUrl: process.env.VUE_ENV === 'server' ? 'http://localhost:6004/' : 'http://m.yohoblk.com/', |
4 | axiosResponseType: 'json', | 4 | axiosResponseType: 'json', |
5 | }, | 5 | }, |
6 | production: { | 6 | production: { |
7 | - axiosBaseUrl: 'http://m.yohoblk.com/', | 7 | + axiosBaseUrl: process.env.VUE_ENV === 'server' ? 'http://localhost:6004/' : 'http://m.yohoblk.com/', |
8 | axiosResponseType: 'json', | 8 | axiosResponseType: 'json', |
9 | } | 9 | } |
10 | }; | 10 | }; |
11 | 11 | ||
12 | + | ||
13 | + | ||
12 | export default config[process.env.NODE_ENV]; | 14 | export default config[process.env.NODE_ENV]; |
@@ -117,9 +117,8 @@ export default { | @@ -117,9 +117,8 @@ export default { | ||
117 | img.onload = () => { | 117 | img.onload = () => { |
118 | setTimeout(() => { | 118 | setTimeout(() => { |
119 | this.show = true; | 119 | this.show = true; |
120 | - }, 500) | 120 | + }, 500); |
121 | }; | 121 | }; |
122 | - console.log(this.goodsList[0].color_image); | ||
123 | img.src = this.goodsList[0].color_image; | 122 | img.src = this.goodsList[0].color_image; |
124 | } | 123 | } |
125 | } | 124 | } |
-
Please register or login to post a comment