<template>
  <Locale>
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
    <div id="dialog"></div>
  </Locale>
</template>

<script setup lang="ts">
import Locale from "@/config/locale.vue";
import { setToken } from "@/store/user";
import { sceneType } from "@/store/case";
import { strToParams } from "@/util";
const params = strToParams(window.location.search);
console.log("params", params);
if (params.token) {
  setToken(params.token);
}
if(params.power){
  sceneType.value = params.power;
}
console.log("params", params);
</script>
