app.js 300 B

123456789101112131415161718192021222324
  1. import {
  2. PLATFORM
  3. } from '@/store/mutation-types'
  4. import storage from '@/utils/storage'
  5. const app = {
  6. state: {
  7. // 当前终端平台
  8. platform: ''
  9. },
  10. mutations: {
  11. SET_PLATFORM: (state, value) => {
  12. state.platform = value
  13. }
  14. },
  15. actions: {
  16. }
  17. }
  18. export default app