tj
2025-05-29 528c3c10f1101e94aaf5c60dd8572a742b20a8e8
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_FILM
  apitype.value = 'loginCustomer'
  // #endif
 
  return {
    apitype
  }
}