1
This commit is contained in:
parent
1e7b6eb969
commit
c5985a5e2b
4
env.js
4
env.js
@ -9,8 +9,8 @@ module.exports = {
|
|||||||
dev: {
|
dev: {
|
||||||
MODE: 'dev',
|
MODE: 'dev',
|
||||||
// VUE_APP_API_URL: 'http://114.132.197.85:8099/',
|
// VUE_APP_API_URL: 'http://114.132.197.85:8099/',
|
||||||
VUE_APP_API_URL: 'http://localhost:8099/',
|
VUE_APP_API_URL: 'http://192.168.1.13:8099/',
|
||||||
VUE_APP_WEBSOCKET: 'ws://localhost:8099/ws/asset/'
|
VUE_APP_WEBSOCKET: 'ws://192.168.1.13:8099/ws/asset/'
|
||||||
},
|
},
|
||||||
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
|
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
|
||||||
prod: {
|
prod: {
|
||||||
|
|||||||
@ -145,7 +145,7 @@ export default {
|
|||||||
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
|
||||||
// 简单判断是否为手机端
|
// 简单判断是否为手机端
|
||||||
this.equipment = /android|webos|iphone|ipod|BlackBerry|iemobile|opera mini/i
|
this.equipment = /android|webos|iphone|ipod|BlackBerry|iemobile|opera mini/i
|
||||||
.test(userAgent.toLowerCase()) ? '手机端' : 'pc端';
|
.test(userAgent.toLowerCase()) ? '手机端' : '电脑端';
|
||||||
|
|
||||||
const websocketUrl = `${process.env.NUXT_ENV.VUE_APP_WEBSOCKET}${this.deviceCode}`;
|
const websocketUrl = `${process.env.NUXT_ENV.VUE_APP_WEBSOCKET}${this.deviceCode}`;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user