看板
Showing
1 changed file
with
6 additions
and
8 deletions
| ... | @@ -25,18 +25,16 @@ import {useRouter} from 'vue-router' | ... | @@ -25,18 +25,16 @@ import {useRouter} from 'vue-router' |
| 25 | 25 | ||
| 26 | const type = ref('是') | 26 | const type = ref('是') |
| 27 | const url = ref() | 27 | const url = ref() |
| 28 | const obj = ref({ | 28 | const obj = ref({}) |
| 29 | IFBASE: "是" | ||
| 30 | }) | ||
| 31 | const result = ref() | 29 | const result = ref() |
| 32 | const router = useRouter() | 30 | const router = useRouter() |
| 33 | url.value = 'http://192.168.1.152:8899/login/sid=36487a35-4354-421a-b0d8-4a430f88b7fa#/' | 31 | // url.value = 'http://192.168.1.152:8899/login/sid=36487a35-4354-421a-b0d8-4a430f88b7fa#/' |
| 34 | // url.value = 'http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/' | 32 | // url.value = 'http://192.168.1.152:8899/login/sid5342b777-d86a-4967-a18b-7329a3fca56b/' |
| 35 | // url.value = window.location.href | 33 | url.value = window.location.href |
| 36 | result.value = url.value?.split('=')[1]?.split('#')[0]; | 34 | result.value = url.value?.split('=')[1]?.split('#')[0]; |
| 37 | 35 | ||
| 38 | onMounted(() => { | 36 | onMounted(() => { |
| 39 | // console.log(window.location.href) | 37 | console.log(url.value) |
| 40 | console.log(result.value) | 38 | console.log(result.value) |
| 41 | if (result.value) { | 39 | if (result.value) { |
| 42 | handelGetYS000() | 40 | handelGetYS000() |
| ... | @@ -48,8 +46,8 @@ onMounted(() => { | ... | @@ -48,8 +46,8 @@ onMounted(() => { |
| 48 | 46 | ||
| 49 | async function handelGetYS000() { | 47 | async function handelGetYS000() { |
| 50 | const res = await getYS000(result.value) | 48 | const res = await getYS000(result.value) |
| 51 | type.value = res.data?.IFBASE || '否' | 49 | type.value = res.data?.IFBASE || '是' |
| 52 | // obj.value = res.data || {} | 50 | obj.value = res.data || {} |
| 53 | } | 51 | } |
| 54 | 52 | ||
| 55 | 53 | ... | ... |
-
Please register or sign in to post a comment