| | |
| | | /*var APIURL = "http://192.168.1.145:83/api/";*/ |
| | | var APIURL = "http://localhost:5204/api/"; |
| | | /*var APIURL_PC = "http://192.168.1.145:81/";*/ |
| | | var APIURL_PC = "http://192.168.1.145:8081/";//测试 |
| | | //var APIURL = "http://192.168.1.187:8083/api/";//PDA后端发布测试地址(内网) |
| | | //var APIURL = "http://192.168.1.187:83/api/";//PDA后端发布正式地址(内网) |
| | | var APIURL = "http://localhost:5204/api/";//本地调试地址 |
| | | |
| | | //var APIURL_PC = "http://192.168.1.187:81/"; //PC后端的正式地址(内网) |
| | | var APIURL_PC = "http://116.148.211.203:8081/"; //PC后端的测试地址(外网) |
| | | |
| | | var APIURL_IMAGE = APIURL_PC+"upload/"; |
| | | var ISNEEDLOGIN = true; |
| | | String.prototype.trim = function () { |
| | |
| | | Vue.prototype.GetLoginInfor = function () { |
| | | var that = this; |
| | | var loginInfo = { |
| | | // 从Cookies中获取登录时保存的userGuid(登录时存储的键是loginGuid) |
| | | loginGuid: Cookies.get('loginGuid'), |
| | | loginAccount: Cookies.get('loginAccount'), |
| | | } |
| | |
| | | Vue.prototype.$playSound = function(type = 'success') { |
| | | try { |
| | | const audioMap = { |
| | | success: '/audio/OK.wav', |
| | | error: '/audio/NG.wav' |
| | | success: '/audio/YES.wav', |
| | | error: '/audio/NO.wav' |
| | | }; |
| | | const audio = new Audio(audioMap[type]); |
| | | audio.play().catch(error => { |