移动端dashbord调整
This commit is contained in:
@@ -62,12 +62,19 @@ export default {
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from "vue"
|
||||
import { getCurrentInstance, onUnmounted } from 'vue'
|
||||
import { getCurrentInstance, onUnmounted,inject } from 'vue'
|
||||
import { ipoStore } from "@/stores/ipo"
|
||||
import { useRouter } from "vue-router";
|
||||
const route=useRouter()
|
||||
const store = ipoStore()
|
||||
const { proxy } = (getCurrentInstance() as any)
|
||||
let emit = defineEmits(['childfn'])
|
||||
|
||||
const reflashRouter=inject('reflashRouter') as Function
|
||||
const IpoReflash=()=>{
|
||||
if(route.options.history.location=="/IPO"||route.options.history.location=="/home"){
|
||||
reflashRouter()
|
||||
}
|
||||
}
|
||||
const props = defineProps({
|
||||
drawer:Boolean
|
||||
})
|
||||
@@ -100,15 +107,17 @@ const handleLang1 = () => {
|
||||
}
|
||||
store.setLocale(1)
|
||||
emit('childfn',!drawer)
|
||||
IpoReflash()
|
||||
}
|
||||
const handleLang2 = () => {
|
||||
if (proxy.$i18n.locale = 'zhCt') {
|
||||
proxy.$i18n.locale = 'zhCt'
|
||||
|
||||
IpoReflash()
|
||||
|
||||
}
|
||||
store.setLocale(2)
|
||||
emit('childfn',!drawer)
|
||||
IpoReflash()
|
||||
}
|
||||
const handleLang3 = () => {
|
||||
if (proxy.$i18n.locale = 'zhCn') {
|
||||
@@ -116,6 +125,7 @@ const handleLang3 = () => {
|
||||
}
|
||||
store.setLocale(3)
|
||||
emit('childfn',!drawer)
|
||||
IpoReflash()
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user