平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 kuukautta sitten
123456789101112131415161718192021222324
  1. <template>
  2. <view></view>
  3. </template>
  4. <script>
  5. export default {
  6. created() {
  7. // token标志来判断
  8. let token = uni.getStorageSync('token');
  9. if (!token) {
  10. uni.reLaunch({
  11. url: '/pages/login'
  12. })
  13. } else {
  14. uni.switchTab({
  15. url: '/pages/earlyWarning/index'
  16. })
  17. }
  18. }
  19. }
  20. </script>
  21. <style>
  22. </style>