App.vue 413 B

123456789101112131415161718
  1. <script>
  2. import routingIntercept from '@/utils/permission.js'
  3. export default {
  4. onLaunch: async function() {
  5. routingIntercept()
  6. },
  7. onShow: function() {
  8. console.log('App Show')
  9. },
  10. onHide: function() {
  11. console.log('App Hide')
  12. }
  13. }
  14. </script>
  15. <style lang="scss">
  16. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  17. @import "./uni_modules/uview-ui/index.scss";
  18. </style>