|
@@ -1,8 +1,8 @@ |
|
|
<!-- |
|
|
<!-- |
|
|
* @Date: 2022-01-19 10:08:26 |
|
|
* @Date: 2022-01-19 10:08:26 |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditors: JinxChen |
|
|
* @LastEditTime: 2022-05-10 18:25:55 |
|
|
|
|
|
* @FilePath: \AntpayFrontEnd\src\App.vue |
|
|
|
|
|
|
|
|
* @LastEditTime: 2023-03-30 18:29:20 |
|
|
|
|
|
* @FilePath: \TelpoH5FrontendWeb\src\App.vue |
|
|
* @description: |
|
|
* @description: |
|
|
--> |
|
|
--> |
|
|
<template> |
|
|
<template> |
|
@@ -25,6 +25,7 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
this.debug(); |
|
|
console.log("当前版本号::", VERSION_MODEL, "当前环境::", process.env.NODE_ENV, this.$title); |
|
|
console.log("当前版本号::", VERSION_MODEL, "当前环境::", process.env.NODE_ENV, this.$title); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@@ -35,6 +36,20 @@ export default { |
|
|
this.isRouterAlive = true; |
|
|
this.isRouterAlive = true; |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
debug() { |
|
|
|
|
|
if (process.env.NODE_ENV !== 'production') { |
|
|
|
|
|
const script = document.createElement('script'); |
|
|
|
|
|
script.src = "//cdn.jsdelivr.net/npm/eruda"; |
|
|
|
|
|
document.body.appendChild(script); |
|
|
|
|
|
script.onload = function () { |
|
|
|
|
|
try { |
|
|
|
|
|
window.eruda.init(); |
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
console.log(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|