cloudroam
7 天以前 c31a8def0ac90d86b8e8e345441bd28002a9ef2f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// composables/usePlatformLoginType.ts
import { ref } from 'vue'
 
export function usePlatformLoginType() {
  const apitype = ref<string>('')
 
  // 平台条件编译设置值
  // #ifdef PUB_SUPPLIER
  apitype.value = 'loginSupplier'
  // #endif
 
  // #ifdef PUB_PARTNER
  apitype.value = 'loginPartner'
  // #endif
 
  // #ifdef PUB_CUSTOMER
  apitype.value = 'loginCustomer'
  // #endif
 
  return {
    apitype
  }
}