瀏覽代碼

解决 vue3 启动后首页报错的问题

YunaiV 1 年之前
父節點
當前提交
e7b1834536
共有 2 個文件被更改,包括 21 次插入0 次删除
  1. 20 0
      .env
  2. 1 0
      pages/index/index.vue

+ 20 - 0
.env

@@ -0,0 +1,20 @@
+# 版本号
+SHOPRO_VERSION = v1.8.3
+
+# 正式环境接口域名
+SHOPRO_BASE_URL = https://api.shopro.sheepjs.com
+
+# 开发环境接口域名
+SHOPRO_DEV_BASE_URL = https://api.shopro.sheepjs.com
+
+# 开发环境运行端口
+SHOPRO_DEV_PORT = 3000
+
+# 接口地址前缀
+SHOPRO_API_PATH = /shop/api/
+
+# 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地  |  http(s)://xxx.xxx=自定义静态资源地址前缀
+SHOPRO_STATIC_URL = https://file.sheepjs.com
+
+# 是否开启直播  1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启)
+SHOPRO_MPLIVE_ON = 0

+ 1 - 0
pages/index/index.vue

@@ -22,6 +22,7 @@
 	} from '@dcloudio/uni-app';
 	} from '@dcloudio/uni-app';
 	import sheep from '@/sheep';
 	import sheep from '@/sheep';
 	import $share from '@/sheep/platform/share';
 	import $share from '@/sheep/platform/share';
+  import index2Api from '@/sheep/api/index2';
 	// 隐藏原生tabBar
 	// 隐藏原生tabBar
 	uni.hideTabBar();
 	uni.hideTabBar();