feat. 환경 세팅
This commit is contained in:
10
layers/plugins/global-caller-info.ts
Normal file
10
layers/plugins/global-caller-info.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export default defineNuxtPlugin(() => {
|
||||
const runtimeConfig = useRuntimeConfig();
|
||||
const callerInfoStore = useCallerInfoStore();
|
||||
|
||||
const callerId = `${runtimeConfig.public.stoveGameId}`;
|
||||
const callerDetail = `${useCookie("sgs_da_uuid").value || ""}`;
|
||||
|
||||
callerInfoStore.setCallerId(callerId);
|
||||
callerInfoStore.setCallerDetail(callerDetail);
|
||||
});
|
||||
Reference in New Issue
Block a user