|
@@ -1,11 +1,20 @@
|
|
1
|
+<!--
|
|
2
|
+ * @Author: zy1125 1515706227@qq.com
|
|
3
|
+ * @Date: 2023-10-18 14:19:17
|
|
4
|
+ * @LastEditors: zy1125 1515706227@qq.com
|
|
5
|
+ * @LastEditTime: 2023-12-20 18:49:48
|
|
6
|
+ * @FilePath: \v3_yyz\src\components\Login.vue
|
|
7
|
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
|
+-->
|
1
|
9
|
<template>
|
2
|
10
|
<div class="bg">
|
3
|
|
- <div style="width: 100%;height: 50px;position: relative;top: 85vh ;z-index: 999;display: flex;align-items: center;justify-content: center;">
|
4
|
|
- <div class="loginbutton" @click="login">
|
5
|
|
- <img :src="loginimg" alt="" style="">
|
6
|
|
- <span> 登录</span>
|
|
11
|
+ <div
|
|
12
|
+ style="width: 100%;height: 50px;position: relative;top: 85vh ;z-index: 999;display: flex;align-items: center;justify-content: center;">
|
|
13
|
+ <div class="loginbutton" @click="login">
|
|
14
|
+ <img :src="loginimg" alt="" style="">
|
|
15
|
+ <span> 登录</span>
|
|
16
|
+ </div>
|
7
|
17
|
</div>
|
8
|
|
- </div>
|
9
|
18
|
|
10
|
19
|
</div>
|
11
|
20
|
</template>
|
|
@@ -17,15 +26,16 @@ import { useRouter } from 'vue-router'
|
17
|
26
|
// import login from '/''
|
18
|
27
|
export default ({
|
19
|
28
|
setup() {
|
20
|
|
- //首先在setup中定义
|
|
29
|
+ //首先在setup中定义
|
21
|
30
|
const router = useRouter()
|
22
|
31
|
|
23
|
32
|
const loginimg = ref("./img/login.png")
|
24
|
33
|
const login = function () {
|
25
|
|
- // window.open("https://cas.huanghuai.edu.cn/cas/")
|
26
|
|
- //跳转路由到首页
|
27
|
|
- router.push('/')
|
28
|
|
-
|
|
34
|
+ // 跳转到指定的 URL 地址
|
|
35
|
+ location.href = "https://cas.huanghuai.edu.cn/cas/?service=https://weizhi.huanghuai.edu.cn/xyyzioc/#/"
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
29
|
39
|
}
|
30
|
40
|
return {
|
31
|
41
|
loginimg,
|
|
@@ -38,7 +48,7 @@ export default ({
|
38
|
48
|
|
39
|
49
|
<style scoped lang="scss">
|
40
|
50
|
.bg {
|
41
|
|
-
|
|
51
|
+
|
42
|
52
|
position: absolute;
|
43
|
53
|
box-sizing: border-box;
|
44
|
54
|
// height: 200vw;
|