Ver Fonte

12/21 10:37

域名链接更换
mo há 4 anos atrás
pai
commit
18cfa5400e
1 ficheiros alterados com 8 adições e 2 exclusões
  1. 8 2
      src/components/silder.vue

+ 8 - 2
src/components/silder.vue

@@ -158,11 +158,17 @@ export default {
       scrollAnimation(currentY, 0)
     },
     submitInfo () {
+
+       //
+       let url = 'https://test.kj.colexiu.com/'
+       if(location.hostname == 'colexiu.com'){
+         url = 'https://kj.colexiu.com/'
+       }
       this.$refs["form"].validate((res) => {
         if (res) {
           console.log("发送请求");
           axios({
-            url: "https://test.kj.colexiu.com/api-user/tenantApply/add",
+            url: url+"api-user/tenantApply/add",
             method: "post",
             data: qs.stringify(this.form),
             headers: {
@@ -356,4 +362,4 @@ export default {
     }
   }
 }
-</style>
+</style>