平安校园
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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>