mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 04:16:50 +08:00
fix:修改版本号
This commit is contained in:
127
src/App.vue
127
src/App.vue
@@ -7,11 +7,11 @@
|
|||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<!--
|
<!--
|
||||||
-->
|
-->
|
||||||
<div id="container">
|
<div id="container">
|
||||||
|
|
||||||
<!-- <div id="nav">
|
<!-- <div id="nav">
|
||||||
<router-link
|
<router-link
|
||||||
v-for="item in routes"
|
v-for="item in routes"
|
||||||
:key="item.path"
|
:key="item.path"
|
||||||
@@ -24,84 +24,85 @@
|
|||||||
{{ item.name }}
|
{{ item.name }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div> -->
|
</div> -->
|
||||||
<main style="z-index: 2">
|
<main style="z-index: 2">
|
||||||
<router-view/>
|
<router-view />
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {boeRequest} from "@/api/request";
|
import { boeRequest } from "@/api/request";
|
||||||
import {GET_USER_INFO} from "@/api/ThirdApi";
|
import { GET_USER_INFO } from "@/api/ThirdApi";
|
||||||
import {useStore} from "vuex";
|
import { useStore } from "vuex";
|
||||||
import {onMounted} from "vue";
|
import { onMounted } from "vue";
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
|
||||||
console.log("版本1.0.6------------");
|
console.log("版本1.0.7------------");
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getUserInfo();
|
getUserInfo();
|
||||||
});
|
});
|
||||||
|
|
||||||
function getUserInfo() {
|
function getUserInfo() {
|
||||||
boeRequest(GET_USER_INFO).then((res) => {
|
boeRequest(GET_USER_INFO).then((res) => {
|
||||||
res.result.avatar = import.meta.env.VITE_BOE_API_URL + '/upload' + (res.result.avatar ? res.result.avatar : '/800e23f7-b58c-4192-820d-0c6a2b7544cc.png')
|
res.result.avatar = import.meta.env.VITE_BOE_API_URL + '/upload' + (res.result.avatar ? res.result.avatar : '/800e23f7-b58c-4192-820d-0c6a2b7544cc.png')
|
||||||
store.commit("SET_USER", res.result);
|
store.commit("SET_USER", res.result);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
#app {
|
#app {
|
||||||
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
|
||||||
// sans-serif;
|
// sans-serif;
|
||||||
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
|
||||||
Microsoft YaHei, Arial, sans-serif;
|
Microsoft YaHei, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
color: #2c3e50;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#container {
|
#container {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
background-color: rgba(242, 245, 247, 1);
|
background-color: rgba(242, 245, 247, 1);
|
||||||
// background-color: #ccc;
|
|
||||||
#nav {
|
|
||||||
width: 220px;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 20px;
|
|
||||||
padding: 30px 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
background: #f1f1f1;
|
|
||||||
box-shadow: 0 5px 15px 8px rgba(1, 22, 54, 0.795);
|
|
||||||
|
|
||||||
.link {
|
// background-color: #ccc;
|
||||||
text-decoration: none;
|
#nav {
|
||||||
color: rgb(0, 0, 0);
|
width: 220px;
|
||||||
padding: 10px;
|
height: 100%;
|
||||||
transition: all 0.4s;
|
display: flex;
|
||||||
text-align: center;
|
flex-direction: column;
|
||||||
|
gap: 20px;
|
||||||
|
padding: 30px 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: #f1f1f1;
|
||||||
|
box-shadow: 0 5px 15px 8px rgba(1, 22, 54, 0.795);
|
||||||
|
|
||||||
&:hover {
|
.link {
|
||||||
background: rgba(4, 37, 223, 0.274);
|
text-decoration: none;
|
||||||
color: #f1f1f1;
|
color: rgb(0, 0, 0);
|
||||||
}
|
padding: 10px;
|
||||||
|
transition: all 0.4s;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
&.active {
|
&:hover {
|
||||||
color: #f1f1f1;
|
background: rgba(4, 37, 223, 0.274);
|
||||||
background: rgba(17, 120, 255, 0.74);
|
color: #f1f1f1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
&.active {
|
||||||
flex: 1;
|
color: #f1f1f1;
|
||||||
width: 100%;
|
background: rgba(17, 120, 255, 0.74);
|
||||||
// padding: 30px;
|
}
|
||||||
box-sizing: border-box;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
|
// padding: 30px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user