App.vue 526 B

12345678910111213141516171819202122232425262728293031
  1. <script>
  2. export default {
  3. onLaunch(options) {
  4. // 检测客户端更新
  5. this.$store.dispatch('update/update', 0)
  6. },
  7. onShow() {
  8. // getApp().globalData.uploadUrl = this.$UPLOAD_URL
  9. // getApp().globalData.img_url = this.$IMG_URL
  10. },
  11. onHide() {
  12. },
  13. // globalData: {
  14. // uploadUrl: '',
  15. // img_url: ''
  16. // },
  17. methods: {
  18. }
  19. }
  20. </script>
  21. <style lang="scss">
  22. /*每个页面公共css */
  23. @import '@/uni_modules/uview-ui/index.scss';
  24. /* #ifndef APP-NVUE */
  25. @import '@/common/css/public.scss';
  26. /* #endif */
  27. </style>