Files
aida_front/src/views/userManual.vue

35 lines
905 B
Vue
Raw Normal View History

2025-08-22 10:27:48 +08:00
<script setup lang="ts">
import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
2025-09-01 14:03:30 +08:00
import { useRouter,useRoute } from 'vue-router'
const route = useRoute()
2025-08-22 10:27:48 +08:00
//const props = defineProps({
//})
//const emit = defineEmits([
//])
let data = reactive({
2025-09-01 14:03:30 +08:00
lang: ''
2025-08-22 10:27:48 +08:00
})
onMounted(()=>{
2025-09-01 14:03:30 +08:00
data.lang = route?.query?.lang
console.log(lang)
2025-08-22 10:27:48 +08:00
})
onUnmounted(()=>{
})
defineExpose({})
2025-09-01 14:03:30 +08:00
const {lang} = toRefs(data);
2025-08-22 10:27:48 +08:00
</script>
<template>
2025-09-01 14:03:30 +08:00
<div class="userManual" v-if="lang == 'CHINESE_SIMPLIFIED'">
<iframe src="https://aida-user-manual-chinese.super.site/" width="100%" height="100%" frameborder="0" allowfullscreen />
</div>
<div class="userManual" v-else-if="lang">
2025-08-22 10:27:48 +08:00
<iframe src="https://aida-user-manual.super.site/" width="100%" height="100%" frameborder="0" allowfullscreen />
</div>
</template>
<style lang="less" scoped>
.userManual{
width: 100%;
height: 100%;
position: relative;
}
</style>