Pre Merge pull request !142 from gitee-api/master-dvlop

pull/142/MERGE
gitee-api 2025-04-27 05:03:53 +00:00 committed by Gitee
commit 8685043bd6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 1 deletions

3
.env
View File

@ -8,6 +8,9 @@ SHOPRO_BASE_URL=http://api-dashboard.yudao.iocoder.cn
SHOPRO_DEV_BASE_URL=http://127.0.0.1:48080 SHOPRO_DEV_BASE_URL=http://127.0.0.1:48080
### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc ### SHOPRO_DEV_BASE_URL = http://yunai.natapp1.cc
# H5访问域名
SHOPRO_H5_URL=http://test.yudao.iocoder.cn
# 文件上传类型server - 后端上传, client - 前端直连上传,仅支持 S3 服务 # 文件上传类型server - 后端上传, client - 前端直连上传,仅支持 S3 服务
SHOPRO_UPLOAD_TYPE=server SHOPRO_UPLOAD_TYPE=server

View File

@ -13,6 +13,7 @@ export const apiPath = import.meta.env.SHOPRO_API_PATH;
export const staticUrl = import.meta.env.SHOPRO_STATIC_URL; export const staticUrl = import.meta.env.SHOPRO_STATIC_URL;
export const tenantId = import.meta.env.SHOPRO_TENANT_ID; export const tenantId = import.meta.env.SHOPRO_TENANT_ID;
export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH; export const websocketPath = import.meta.env.SHOPRO_WEBSOCKET_PATH;
export const h5Url = import.meta.env.SHOPRO_H5_URL;
export default { export default {
baseUrl, baseUrl,
@ -20,4 +21,5 @@ export default {
staticUrl, staticUrl,
tenantId, tenantId,
websocketPath, websocketPath,
h5Url,
}; };

View File

@ -4,6 +4,7 @@ import $platform from '@/sheep/platform';
import $router from '@/sheep/router'; import $router from '@/sheep/router';
import user from './user'; import user from './user';
import sys from './sys'; import sys from './sys';
import { h5Url } from '@/sheep/config';
const app = defineStore({ const app = defineStore({
id: 'app', id: 'app',
@ -72,7 +73,7 @@ const app = defineStore({
this.platform = { this.platform = {
share: { share: {
methods: ['forward', 'poster', 'link'], methods: ['forward', 'poster', 'link'],
linkAddress: 'http://127.0.0.1:3000', // TODO 芋艿:可以考虑改到 .env 那 linkAddress: h5Url, // 改到 .env 配置
posterInfo: { posterInfo: {
user_bg: '/static/img/shop/config/user-poster-bg.png', user_bg: '/static/img/shop/config/user-poster-bg.png',
goods_bg: '/static/img/shop/config/goods-poster-bg.png', goods_bg: '/static/img/shop/config/goods-poster-bg.png',