zhangwei 3 lat temu
rodzic
commit
b95317c8cb
2 zmienionych plików z 3 dodań i 4 usunięć
  1. 0 1
      server/main.py
  2. 3 3
      src/components/HelloWorld.vue

+ 0 - 1
server/main.py

@@ -23,7 +23,6 @@ def build_mini_program(branch):
     "rm -rf dist;"
     "git checkout "+branch+";"
     "git pull;"
-    "n 10;"
     "cnpm install && npm install ;"
     "npm run build && npm run build:other;"
     )

+ 3 - 3
src/components/HelloWorld.vue

@@ -69,7 +69,7 @@ import axios from "axios";
 export default {
   data() {
     return {
-      url:'192.168.80.253:7777',
+      url:'http://192.168.80.253:7777/',
       // url:'http://192.168.80.185:7777',
       loading: false,
       ruleForm: {
@@ -241,7 +241,7 @@ export default {
     },
     // 获取分支
     getBranchpage() {
-      axios.get(this.url+"/getBranch").then((res) => {
+      axios.get(this.url+"getBranch").then((res) => {
         res = res.data;
         if (res.code == 0) {
           this.ruleForm.branch = res.data;
@@ -253,7 +253,7 @@ export default {
         if (valid) {
           this.loading = true;
           axios
-            .post(this.url+"/send", {
+            .post(this.url+"send", {
               project: this.ruleForm.selected_project,
               webhook: this.ruleForm.webhook,
               mode: this.ruleForm.selected_mode,