| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <script setup>
- import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
- import sheep from '@/common';
- onLaunch(() => {
- // 隐藏原生导航栏 使用自定义底部导航
- uni.hideTabBar({
- fail: () => {},
- });
- //游客游客模式注释
- if(!uni.getStorageSync("token")){
- uni.reLaunch({
- url: '/pages/index/index'
- })
- }else{
- sheep.$store('user').getInfo()
- }
- })
- onShow(() => {
- // #ifdef APP-PLUS
- // 获取urlSchemes参数
- const args = plus.runtime.arguments;
- if (args) {
- }
- // 获取剪贴板
- uni.getClipboardData({
- success: (res) => {},
- });
- // #endif
- });
- </script>
- <style lang="scss">
- @import '@/common/scss/index.scss';
- </style>
|