ll
liukangdong
2024-10-22 85b460b57cd7e9ad935042df74f40e1bbdfa3408
h5_meeting/pages/index/config.vue
@@ -11,14 +11,14 @@
         <view class="item">
            <view class="title">接口地址</view>
            <view class="line">
               <input type="text" v-model="param.addr" />
               <input type="text" v-model="param.baseUrl" />
               <image src="../../static/icon/right.svg" class="icon"></image>
            </view>
         </view>
         <view class="item">
            <view class="title">接口调用间隔(秒)</view>
            <view class="line">
               <input type="text" v-model="param.time" />
               <input type="text" placeholder="60" v-model="param.time" />
               <image src="../../static/icon/right.svg" class="icon"></image>
            </view>
         </view>
@@ -28,14 +28,21 @@
</template>
<script>
   import { baseUrl } from '@/utils/config.js'
   export default {
      data() {
         return {
            param: {}
            param: {
               baseUrl,
               time: 60
            }
         };
      },
      onLoad(){
         const param = uni.getStorageSync('param') || {}
         const param = uni.getStorageSync('param') || {
            baseUrl: baseUrl,
            time: 60
         }
         this.param = { ...param }
      },
      methods: {
@@ -48,7 +55,9 @@
               })
            })
            setTimeout(()=>{
               uni.navigateBack()
               uni.redirectTo({
                  url:'/pages/index/index'
               })
            }, 400)
         }
      }