home.vue
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<div class="main">
<el-row class="w100">
<el-col :span="type=='是'?8:12">
<left-page :type="type" :url="result"/>
</el-col>
<el-col v-if="type=='是'" :span="8">
<center-page :type="type=='是'" :url="result"/>
</el-col>
<el-col :span="type=='是'?8:12">
<right-page :type="type" :url="result"/>
</el-col>
</el-row>
</div>
</template>
<script setup>
import LeftPage from "@/viewsPc/vip/leftPage"
import CenterPage from "@/viewsPc/vip/centerPage"
import RightPage from "@/viewsPc/vip/rightPage"
import {getYS000} from '@/api/server.js'
import {ref, onMounted} from 'vue'
const type = ref('否')
// url.value = window.location.href
const url = ref('http://192.168.1.152:8899/login/sid=5342b777-d86a-4967-a18b-7329a3fca56b#/')
const result = ref()
result.value = url.value?.split('=')[1]?.split('#')[0];
onMounted(() => {
console.log(result.value)
if (result.value) handelGetYS000()
})
async function handelGetYS000() {
const res = await getYS000(result.value)
type.value = res.data?.IFBASE || '否'
}
</script>
<style lang="scss" scoped>
</style>