Преглед на файлове

12/21 10:37

域名链接更换
mo преди 4 години
родител
ревизия
18cfa5400e
променени са 1 файла, в които са добавени 8 реда и са изтрити 2 реда
  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>