Sign in

microservice / sl-express · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • sl-express
  • project-wl-kuaidiyuan-uniapp-vue3
  • src
  • config
  • index.js
  • jar 包
      ff355036
    tianwu authored
    2025-12-01 18:59:20 +0800  
    Browse Code »
index.js 387 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
export function appType() {
  let type = 'web'
  // #ifdef MP-WEIXIN
  type = 'wechat'
  // #endif
  // #ifdef APP-ANDROID
  type = 'android'
  // #endif
  // #ifdef APP-IOS
  type = 'ios'
  // #endif
  return type
}

export function platform() {
  let type = 'android'
  // #ifdef APP-ANDROID
  type = 'android'
  // #endif
  // #ifdef APP-IOS
  type = 'ios'
  // #endif
  return type
}