Sfoglia il codice sorgente

【功能优化】简化代码

卢越 11 mesi fa
parent
commit
6f8e82e6cf
2 ha cambiato i file con 10 aggiunte e 11 eliminazioni
  1. 10 10
      .env
  2. 0 1
      sheep/components/s-uploader/choose-and-upload-file.js

+ 10 - 10
.env

@@ -1,31 +1,31 @@
 # 版本号
-SHOPRO_VERSION = v1.8.3
+SHOPRO_VERSION=v1.8.3
 
 # 后端接口 - 正式环境(通过 process.env.NODE_ENV 非 development)
-SHOPRO_BASE_URL = http://123.183.21.179:48080
+SHOPRO_BASE_URL=http://api-dashboard.yudao.iocoder.cn
 
 # 后端接口 - 测试环境(通过 process.env.NODE_ENV = development)
-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
 
 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
-SHOPRO_UPLOAD_TYPE = server
+SHOPRO_UPLOAD_TYPE=client
 
 # 后端接口前缀(一般不建议调整)
-SHOPRO_API_PATH = /app-api
+SHOPRO_API_PATH=/app-api
 
 # 后端 websocket 接口前缀
-SHOPRO_WEBSOCKET_PATH = /infra/ws
+SHOPRO_WEBSOCKET_PATH=/infra/ws
 
 # 开发环境运行端口
-SHOPRO_DEV_PORT = 3000
+SHOPRO_DEV_PORT=3000
 
 # 客户端静态资源地址 空=默认使用服务端指定的CDN资源地址前缀 | local=本地  |  http(s)://xxx.xxx=自定义静态资源地址前缀
-SHOPRO_STATIC_URL = http://test.yudao.iocoder.cn
+SHOPRO_STATIC_URL=http://test.yudao.iocoder.cn
 ### SHOPRO_STATIC_URL = https://file.sheepjs.com
 
 # 是否开启直播  1 开启直播 | 0 关闭直播 (小程序官方后台未审核开通直播权限时请勿开启)
-SHOPRO_MPLIVE_ON = 0
+SHOPRO_MPLIVE_ON=0
 
 # 租户ID 默认 1
-SHOPRO_TENANT_ID = 1
+SHOPRO_TENANT_ID=1

+ 0 - 1
sheep/components/s-uploader/choose-and-upload-file.js

@@ -1,6 +1,5 @@
 'use strict';
 import FileApi from '@/sheep/api/infra/file';
-import CryptoJS from 'crypto-js';
 
 const ERR_MSG_OK = 'chooseAndUploadFile:ok';
 const ERR_MSG_FAIL = 'chooseAndUploadFile:fail';