Browse Source

修改’

git commit -m 修改’
HZH 5 years ago
parent
commit
775beba339
3 changed files with 5 additions and 5 deletions
  1. 2 2
      deploy.sh
  2. 1 1
      src/main.js
  3. 2 2
      vue.config.js

+ 2 - 2
deploy.sh

@@ -4,6 +4,6 @@ docker build -t feick/diagnosis-frontend:$date .
 echo "frontend current tag is $date"
 sed -i "s/\${date}/$(echo $date)/g" deployment.yaml
 kubectl apply -f deployment.yaml
-#sed -i "s/\${date}/$(echo $date)/g" deployment-prod.yaml
-#kubectl apply -f deployment-prod.yaml
+sed -i "s/\${date}/$(echo $date)/g" deployment-prod.yaml
+kubectl apply -f deployment-prod.yaml
 echo "build finish."

+ 1 - 1
src/main.js

@@ -18,7 +18,7 @@ Vue.prototype.$http = axios;
 //请求拦截
 axios.interceptors.request.use((config) => {
   //请求之前重新拼装url
-  // config.url = '/rest/diagnosis' + config.url;
+  config.url = '/rest/diagnosis' + config.url;
   return config;
 });
 

+ 2 - 2
vue.config.js

@@ -12,8 +12,8 @@ module.exports = {
     devServer: {
         proxy: {
             '/': {
-                // target: 'http://localhost:8085',
-                target: 'http://119.23.22.31:30962',
+                target: 'http://localhost:8085',
+                // target: 'http://119.23.22.31:30962',
                 // target: 'http://119.23.22.31:31588',
                 autoRewrite: true,
                 ws: false