tj
2025-06-06 4789476b3fe734b4366ce72079330cea32a4997d
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
  }
}