fix:修改在线案例考试测评跳转

This commit is contained in:
lixg
2022-12-15 11:49:39 +08:00
parent 1e21f20508
commit 333c87befa
10 changed files with 107 additions and 64 deletions

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com
* @Date: 2022-11-21 17:28:10
* @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2022-12-13 22:10:22
* @LastEditTime: 2022-12-14 22:48:46
* @FilePath: /fe-stu/src/App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
@@ -22,35 +22,33 @@
</router-link>
</div> -->
<main>
<router-view/>
<router-view />
</main>
</div>
</template>
<script setup>
import { boeRequest } from "@/api/request";
import { GET_USER_INFO } from "@/api/ThirdApi";
import { useStore } from "vuex";
import { onMounted } from "vue";
import {boeRequest} from "@/api/request";
import {GET_USER_INFO} from "@/api/ThirdApi";
import { useStore } from "vuex";
import {onMounted} from "vue";
const store = useStore();
onMounted(()=>{
getUserInfo()
})
function getUserInfo(){
boeRequest(GET_USER_INFO).then(res=>{
store.commit("SET_USER", res.result);
})
}
const store = useStore();
onMounted(() => {
getUserInfo();
});
function getUserInfo() {
boeRequest(GET_USER_INFO).then((res) => {
store.commit("SET_USER", res.result);
});
}
</script>
<style lang="scss">
#app {
// font-family: MicrosoftYaHei, Microsoft YaHei, Avenir, Helvetica, Arial,
// sans-serif;
font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
Microsoft YaHei, Arial, sans-serif;
Microsoft YaHei, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
@@ -61,8 +59,8 @@
display: flex;
width: 100%;
min-height: 100%;
background-color: rgba(242, 245, 247, 1);
// background-color: #ccc;
// background-color: rgba(242, 245, 247, 1);
background-color: #ccc;
#nav {
width: 220px;
height: 100%;