diff --git a/yshop-drink-uniapp-vue3/config/index.js b/yshop-drink-uniapp-vue3/config/index.js index ce80b56..de32ef8 100644 --- a/yshop-drink-uniapp-vue3/config/index.js +++ b/yshop-drink-uniapp-vue3/config/index.js @@ -1,4 +1,4 @@ -const DEV_API_URL = 'http://maitre.imomoe.cn/api/app-api' +const DEV_API_URL = 'https://maitre.imomoe.cn/api/app-api' const PROD_API_URL = 'https://maitre.imomoe.cn/api/app-api' // #ifdef APP-PLUS || H5 || MP-WEIXIN diff --git a/yshop-drink-uniapp-vue3/manifest.json b/yshop-drink-uniapp-vue3/manifest.json index 6f68056..6ef841a 100644 --- a/yshop-drink-uniapp-vue3/manifest.json +++ b/yshop-drink-uniapp-vue3/manifest.json @@ -1,6 +1,6 @@ { "name" : "yshop-miniapp", - "appid" : "__UNI__ADC0FB0", + "appid" : "__UNI__1C076DF", "description" : "", "versionName" : "1.0.0", "versionCode" : 1, @@ -401,7 +401,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wx001e2dc50bf532df", + "appid" : "wx9453a51cb9bb4143", "setting" : { "urlCheck" : false }, @@ -442,6 +442,11 @@ "key" : "OGABZ-Y5OCF-5UWJ5-N7DHH-VFIG7-DHFEB" } } + }, + "optimization" : { + "treeShaking" : { + "enable" : true + } } } } diff --git a/yshop-drink-uniapp-vue3/pages/menu/menu.vue b/yshop-drink-uniapp-vue3/pages/menu/menu.vue index f8311e8..29a66ea 100644 --- a/yshop-drink-uniapp-vue3/pages/menu/menu.vue +++ b/yshop-drink-uniapp-vue3/pages/menu/menu.vue @@ -273,21 +273,21 @@ const isCartShow = ref(true) const popup = ref() // #region agent log -const debugLog = (hypothesisId, location, message, data = {}) => { - fetch('http://127.0.0.1:7584/ingest/889fdfba-29d4-4509-84ce-3dfa9254da00', { - method: 'POST', - headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': 'e0348b' }, - body: JSON.stringify({ - sessionId: 'e0348b', - runId: 'pre-fix', - hypothesisId, - location, - message, - data, - timestamp: Date.now() - }) - }).catch(() => {}) -} +// const debugLog = (hypothesisId, location, message, data = {}) => { +// fetch('http://127.0.0.1:7584/ingest/889fdfba-29d4-4509-84ce-3dfa9254da00', { +// method: 'POST', +// headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': 'e0348b' }, +// body: JSON.stringify({ +// sessionId: 'e0348b', +// runId: 'pre-fix', +// hypothesisId, +// location, +// message, +// data, +// timestamp: Date.now() +// }) +// }).catch(() => {}) +// } const measureMenuLayout = () => { const sys = uni.getSystemInfoSync() const notice = !!store.value?.notice diff --git a/yshop-drink-vue3/.env.dev b/yshop-drink-vue3/.env.dev index 64ee48d..7a3a0e1 100644 --- a/yshop-drink-vue3/.env.dev +++ b/yshop-drink-vue3/.env.dev @@ -4,12 +4,12 @@ NODE_ENV=production VITE_DEV=true # 请求路径 -VITE_BASE_URL='http://localhost:48081' +VITE_BASE_URL='http://yshop.maitre.cn:48081' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server # 上传路径 -VITE_UPLOAD_URL='http://localhost:48081/admin-api/infra/file/upload' +VITE_UPLOAD_URL='http://yshop.maitre.cn:48081/admin-api/infra/file/upload' # 接口地址 VITE_API_URL=/admin-api diff --git a/yshop-drink-vue3/.env.prod b/yshop-drink-vue3/.env.prod index 8feca4f..eda4e66 100644 --- a/yshop-drink-vue3/.env.prod +++ b/yshop-drink-vue3/.env.prod @@ -4,12 +4,12 @@ NODE_ENV=production VITE_DEV=false # 请求路径 -VITE_BASE_URL='http://localhost:48081' +VITE_BASE_URL='https://maitre.imomoe.cn/api' # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务 VITE_UPLOAD_TYPE=server # 上传路径 -VITE_UPLOAD_URL='http://localhost:48081/admin-api/infra/file/upload' +VITE_UPLOAD_URL='https://maitre.imomoe.cn/api/admin-api/infra/file/upload' # 接口地址 VITE_API_URL=/admin-api