This commit is contained in:
hejin 2025-10-09 20:45:30 +08:00
parent 384ab17342
commit 331428df70
3 changed files with 5 additions and 7 deletions

6
env.js
View File

@ -6,10 +6,10 @@ module.exports = {
VUE_APP_API_URL: '/dev'
},
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
ev: {
dev: {
MODE: 'dev',
VUE_APP_API_URL: 'http://127.0.0.1:8099/',
// VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
// VUE_APP_API_URL: 'http://127.0.0.1:8099/',
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
},
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空

View File

@ -220,9 +220,6 @@
</template>
<script>
import { onMounted } from 'vue'
export default {
name: 'index',
data() {

View File

@ -6,7 +6,8 @@ export default function ({redirect, $axios, app}) {
config => {
config.params = {
...config.params,
tenantId: 'main', showPlat:"网站"
tenantId: 'main',
showPlat:"网站"
}
if (config.method === 'post') {
config.data = {