update @修改错误校验

This commit is contained in:
huangzhen 2024-09-06 21:00:24 +08:00
parent 47ce6e5422
commit 6e6d92209f
5 changed files with 27 additions and 3 deletions

View File

@ -1,8 +1,8 @@
const { merge } = require('webpack-merge') const { merge } = require('webpack-merge')
const baseConfig = require('./webpack.base.js') const baseConfig = require('./webpack.base.js')
const VITE_BASE_URL = 'http://192.168.110.126:8099'; // 樊波 // const VITE_BASE_URL = 'http://192.168.110.126:8099'; // 樊波
// const VITE_BASE_URL = 'http://120.55.12.245:8098'; // 测试-公网 const VITE_BASE_URL = 'http://120.55.12.245:8098'; // 测试-公网
// const VITE_BASE_URL = 'https://scens.admin.86698.cn'; // 正式地址 // const VITE_BASE_URL = 'https://scens.admin.86698.cn'; // 正式地址
// 合并公共配置,并添加开发环境配置 // 合并公共配置,并添加开发环境配置

View File

@ -11,6 +11,9 @@
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
<script>
var vConsole = new window.VConsole();
</script>
</body> </body>
</html> </html>

View File

@ -473,8 +473,15 @@ export default {
// todo // todo
location.href = 'https://www.baidu.com/'; location.href = 'https://www.baidu.com/';
} }
} else {
if (!this.openid) {
// openid
location.replace(`${this.wxAuthUrl}?jump=${location.href}`);
} }
} }
} else {
showToast(!channel ? '渠道错误' : !mode ? '领取方式错误' : '')
}
}, },
// //
copyFn(text: string) { copyFn(text: string) {

View File

@ -203,8 +203,15 @@ export default {
// todo // todo
location.href = 'https://www.baidu.com/'; location.href = 'https://www.baidu.com/';
} }
} else {
if (!this.openid) {
// openid
location.replace(`${this.wxAuthUrl}?jump=${location.href}`);
} }
} }
} else {
showToast(!channel ? '渠道错误' : !mode ? '领取方式错误' : '')
}
}, },
// //
copyFn(text: string) { copyFn(text: string) {

View File

@ -218,8 +218,15 @@ export default {
// todo // todo
location.href = 'https://www.baidu.com/'; location.href = 'https://www.baidu.com/';
} }
} else {
if (!this.openid) {
// openid
location.replace(`${this.wxAuthUrl}?jump=${location.href}`);
} }
} }
} else {
showToast(!channel ? '渠道错误' : !mode ? '领取方式错误' : '')
}
}, },
// //
copyFn(text: string) { copyFn(text: string) {