mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
文档更新
This commit is contained in:
@@ -206,19 +206,18 @@ public class FileUploadConfig {
|
||||
|
||||
### 修改后台配置
|
||||
|
||||
找到`shop.properties` 文件 修改
|
||||
平台端修改文件`.env.production`(生产环境)/ `.env.development`(开发环境)
|
||||
里面的`VUE_APP_BASE_API`为api接口请求地址, `VUE_APP_RESOURCES_URL`为静态资源文件url
|
||||
|
||||
```
|
||||
shop.qiniu.resourcesUrl=
|
||||
shop.qiniu.accessKey=
|
||||
shop.qiniu.secretKey=
|
||||
shop.qiniu.bucket=
|
||||
```
|
||||
// api接口请求地址
|
||||
VUE_APP_BASE_API = 'http://127.0.0.1:8085'
|
||||
// 静态资源文件url
|
||||
VUE_APP_RESOURCES_URL = 'https://img.mall4j.com/'
|
||||
|
||||
### 修改vue配置
|
||||
修改vue配置
|
||||
|
||||
- 在`static/config/index.js` 修改`resourcesUrl` 统一七牛云存储开发环境目录
|
||||
- 在`static/config/index-prod.js` 修改`resourcesUrl` 统一七牛云存储生产环境目录
|
||||
- 修改文件`utils\config.js`
|
||||
- 里面的`domain`为api接口请求地址, `picDomain`为静态资源文件url
|
||||
|
||||
### 更新于2023.03.27
|
||||
- 在`shop.properties` 更新了本地上传的配置,vue中的`resourcesUrl`也配置对应的本地路径
|
||||
|
||||
Reference in New Issue
Block a user