移动端dashbord调整

This commit is contained in:
zzy
2023-04-21 16:54:59 +08:00
parent 3eb07382ae
commit cd4544afb8
20 changed files with 499 additions and 157 deletions
+13 -3
View File
@@ -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>