| | |
| | | ### |
| | | # @Date: 2024-03-23 09:49:06 |
| | | # @LastEditors: gaoshp |
| | | # @LastEditTime: 2024-03-23 18:12:00 |
| | | # @FilePath: /cps-web/.env.development |
| | | # @LastEditors: Sneed |
| | | # @LastEditTime: 2024-04-10 22:11:44 |
| | | # @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/.env.development |
| | | ### |
| | | # 本地环境 |
| | | NODE_ENV = development |
| | |
| | | |
| | | # 接口地址 |
| | | VUE_APP_API_BASEURL = http://116.63.155.153:83 |
| | | VUE_APP_API_MYBASEURL = https://mock.apifox.com/m1/4213246-0-default/api |
| | | # 本地端口 |
| | | VUE_APP_PORT = 2800 |
| | | |
| | |
| | | ### |
| | | # @Date: 2024-03-23 09:49:06 |
| | | # @LastEditors: gaoshp |
| | | # @LastEditTime: 2024-03-24 14:11:48 |
| | | # @FilePath: /cps-web/.env.production |
| | | # @LastEditors: Sneed |
| | | # @LastEditTime: 2024-04-10 22:10:52 |
| | | # @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/.env.production |
| | | ### |
| | | # 生产环境 |
| | | NODE_ENV = production |
| | |
| | | VUE_APP_TITLE = CPS10.0 |
| | | |
| | | # 接口地址 |
| | | VUE_APP_API_BASEURL = http://116.63.155.153:83 |
| | | VUE_APP_API_MYBASEURL = http://116.63.155.153:83 |
| | | VUE_APP_API_BASEURL = /api |
| | |
| | | export default { |
| | | menu: { |
| | | myMenus: { |
| | | url: `${config.API_URL_MY}/system/menu/my/1.6.1`, |
| | | url: `${config.API_URL}/system/menu/my/1.6.1`, |
| | | name: "获取我的菜单", |
| | | get: async function(){ |
| | | return await http.get(this.url); |
| | |
| | | /* |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-07 12:16:15 |
| | | * @FilePath: /smart-web/src/config/index.js |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-10 22:12:06 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/config/index.js |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | */ |
| | | const DEFAULT_CONFIG = { |
| | |
| | | |
| | | //接口地址 |
| | | API_URL: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/api" : process.env.VUE_APP_API_BASEURL, |
| | | API_URL_MY: process.env.NODE_ENV === 'development' && process.env.VUE_APP_PROXY === 'true' ? "/myapi" : process.env.VUE_APP_API_MYBASEURL, |
| | | //请求超时 |
| | | TIMEOUT: 10000, |
| | | |
| | |
| | | /* |
| | | * @Date: 2024-03-23 09:49:06 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-03-28 11:34:07 |
| | | * @FilePath: /cps-web/vue.config.js |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-10 22:11:52 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/vue.config.js |
| | | */ |
| | | const { defineConfig } = require('@vue/cli-service') |
| | | |
| | |
| | | // '^/api': '/' |
| | | } |
| | | }, |
| | | '/myapi': { |
| | | target: process.env.VUE_APP_API_MYBASEURL, |
| | | ws: true, |
| | | pathRewrite: { |
| | | '^/myapi': '/' |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |