Sfoglia il codice sorgente

update

- 增加 debug按钮
feat
JinxChen 1 anno fa
parent
commit
54086abe35
4 ha cambiato i file con 26 aggiunte e 5 eliminazioni
  1. +2
    -1
      .eslintrc.js
  2. +6
    -1
      README.md
  3. +17
    -2
      src/App.vue
  4. +1
    -1
      src/config/models.js

+ 2
- 1
.eslintrc.js Vedi File

@@ -19,7 +19,8 @@ module.exports = {
globals: {
"AMap": "true",
"AMapUI": "true",
"WeixinJSBridge": "true"
"WeixinJSBridge": "true",
"eruda": "true"
},
overrides: [
{


+ 6
- 1
README.md Vedi File

@@ -305,4 +305,9 @@ update
- 修改 微信支付的方式,不使用jssdk,使用微信内置WeixinJSBridge对象

- appId
- 修改 微信测试环境appId
- 修改 微信测试环境appId

## v1.0.36
`2023.3.30`
update
- 增加 debug按钮

+ 17
- 2
src/App.vue Vedi File

@@ -1,8 +1,8 @@
<!--
* @Date: 2022-01-19 10:08:26
* @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:
-->
<template>
@@ -25,6 +25,7 @@ export default {
}
},
mounted() {
this.debug();
console.log("当前版本号::", VERSION_MODEL, "当前环境::", process.env.NODE_ENV, this.$title);

},
@@ -35,6 +36,20 @@ export default {
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>


+ 1
- 1
src/config/models.js Vedi File

@@ -5,7 +5,7 @@
* @FilePath: \TelpoH5FrontendWeb\src\config\models.js
* @description:
*/
export const VERSION_MODEL = '1.0.34F'; //版本号
export const VERSION_MODEL = '1.0.35F'; //版本号
export const IMAGE_URL = {
production: 'http://zfb.ssjlai.com/web/',
test: 'http://zfb.ssjlai.com/web/',


Loading…
Annulla
Salva