Browse Source

2023-1`-`

cmy 1 year ago
parent
commit
f255b68e99
3 changed files with 9 additions and 5 deletions
  1. 2 3
      config/app.js
  2. 6 1
      manifest.json
  3. 1 1
      pages/index/diy/components/pictureCube.vue

+ 2 - 3
config/app.js

@@ -2,14 +2,13 @@ module.exports = {
 	// 小程序配置
 	// #ifdef MP || APP-PLUS
 	// 请求域名 格式: https://您的域名
-	HTTP_REQUEST_URL: `http://ykt.ns.liuniu946.com`,
+	HTTP_REQUEST_URL: `https://liaoningaoxun.com`,
 	// #endif
 
 	// H5配置
 	// #ifdef H5
 	//H5接口是浏览器地址,非单独部署不用修改
-	// HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host,
-	HTTP_REQUEST_URL:"http://ykt.ns.liuniu946.com",
+	HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host,
 	// #endif 
 
 

+ 6 - 1
manifest.json

@@ -216,7 +216,12 @@
     },
     "h5" : {
         "devServer" : {
-            "https" : false
+            "proxy" : {
+                "/api" : {
+                    "target" : "https://liaoningaoxun.com",
+                    "changeOrigin": true
+                }
+            }
         },
         "router" : {
             "mode" : "history",

+ 1 - 1
pages/index/diy/components/pictureCube.vue

@@ -35,7 +35,7 @@
 		</view>
 		<view class="advertItem02 advertItem06 acea-row" v-if="style==5">
 			<view class="item" v-for="(item,index) in picList" :key="index" @click="goDetail(item)">
-				<image :src="item.image" mode="aspectFill"></image>
+				<image :src="item.image" mode="aspectFit" ></image>
 			</view>
 		</view>
 	</view>