home.vue 1.25 KB
<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('否')
const url = ref()
const result = ref()

// const url = ref('http://192.168.1.152:8899/login/sid=5342b777-d86a-4967-a18b-7329a3fca56b#/')
// const url = ref('http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/')
url.value = window.location.href
result.value = url.value?.split('=')[1]?.split('#')[0];

onMounted(() => {
  console.log(url.value)
  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>