ll
liukangdong
2024-12-10 a8c03746e6bd8ac1d46dc48c1b10bceff543664f
h5/App.vue
@@ -1,8 +1,13 @@
<script>
import { wxAuthorize, refreshToken } from '@/api'
import { wxAuthorize, refreshToken, app_url } from '@/api'
export default {
  onLaunch: function () {
    window.addEventListener("popstate", (event) => {
         const path = this.$route.fullPath
       if(path == '/pages/login/login' || path == '/'){
            window.location.href = app_url
         }
    })
  },
  onShow: function () {
    console.log('App Show')
@@ -16,7 +21,11 @@
<style lang="scss">
/*每个页面公共css */
@import "uview-ui/index.scss";
html, body {
    height: auto;
    min-height: 100%;
    overflow: visible;
}
.flex-cb {
  display: flex;
  justify-content: space-between;
@@ -191,7 +200,7 @@
}
.main_app {
  padding: 0 30rpx 30rpx;
  padding: 10rpx 30rpx 30rpx;
  font-size: 28rpx;
  color: #333333;
}