cnf
2025-08-14 fdbaf392415fe3727098a79c800436e7a1bd89bf
Scripts/config.js
@@ -1,7 +1,10 @@
/*var APIURL = "http://192.168.1.145:83/api/";*///后端发布的地址
var APIURL = "http://localhost:5204/api/";
/*var APIURL_PC = "http://192.168.1.145:81/";*/ //PC后端的地址
var APIURL_PC = "http://192.168.1.145:81/";//测试
//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 () {
@@ -50,6 +53,7 @@
Vue.prototype.GetLoginInfor = function () {
    var that = this;
    var loginInfo = {
       // 从Cookies中获取登录时保存的userGuid(登录时存储的键是loginGuid)
        loginGuid: Cookies.get('loginGuid'),
        loginAccount: Cookies.get('loginAccount'),
    }
@@ -208,8 +212,8 @@
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 => {