tremble 4 years ago
parent
commit
bcd0c69b8b
1 changed files with 2 additions and 10 deletions
  1. 2 10
      src/views/Home.vue

+ 2 - 10
src/views/Home.vue

@@ -172,7 +172,7 @@ export default {
     },
     async getData() {
       // https://www.4dmodel.com/
-      let url = `/data/${
+      let url = `/SuperTwo/data/${
         this.id
       }/hot/js/data.js?time=${Math.random()}`;
       let result = (await this.$http.get(url)).data;
@@ -205,15 +205,7 @@ export default {
       }
     },
     fixUrl(item) {
-      let condition =
-        item.indexOf("http://") > -1 || item.indexOf("https://") > -1;
-      let tmp = ''
-      if (!condition) {
-        tmp = "https://" + item
-        tmp = tmp.replace('https://super.4dage.com','')
-        return tmp;
-      }
-      return item.replace('https://super.4dage.com','');
+      return item;
     },
     slideto(action) {
       this.swiper[action]();