123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <mobile-frame>
- <view class="main">
- 系统首页
- </view>
- </mobile-frame>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {};
- },
- onLoad: function() {},
- onShow: function() {
- const that = this;
- that.search();
- },
- methods: {
- search() {
- // 查询当前所在平台
- uni.getSystemInfo({
- success: async function(res) {
- uni.setStorage({
- key: 'system',
- data: res,
- success: function() {
- uni.redirectTo({
- url: `/pages/home/index`
- })
- }
- });
- }
- });
- },
- }
- }
- </script>
- <style lang="scss">
- </style>
|