修复些问题
This commit is contained in:
parent
d73e1f95f1
commit
a8e8fc26ed
|
@ -0,0 +1 @@
|
||||||
|
VITE_APP_BASE_API = 'http://127.0.0.1:8088'
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"baseUrl": "./",
|
"baseUrl": ".",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"]
|
"@/*": ["./src/*"]
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build:prod": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
|
||||||
},
|
},
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 659 KiB |
Binary file not shown.
After Width: | Height: | Size: 809 KiB |
Binary file not shown.
After Width: | Height: | Size: 763 KiB |
|
@ -10,7 +10,7 @@
|
||||||
{{ props.topicTitle }}
|
{{ props.topicTitle }}
|
||||||
</div>
|
</div>
|
||||||
<div class="introduce">
|
<div class="introduce">
|
||||||
<el-radio-group v-if="props.type=='select'" v-model="radio">
|
<el-radio-group v-if="props.type!='fill_topic'" v-model="radio">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="itme in topicSelect"
|
v-for="itme in topicSelect"
|
||||||
:key="itme.key"
|
:key="itme.key"
|
||||||
|
@ -33,46 +33,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
|
|
||||||
.topicInfoBox {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
font-family: "KaiTi"
|
|
||||||
}
|
|
||||||
.introduce {
|
|
||||||
margin: 10px auto;
|
|
||||||
width: 90%;
|
|
||||||
word-break: normal;
|
|
||||||
word-wrap: break-word;
|
|
||||||
}
|
|
||||||
.title{
|
|
||||||
font-size: 17px;
|
|
||||||
line-height: 17px;
|
|
||||||
margin-top:30px;
|
|
||||||
}
|
|
||||||
.tag{
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
.jg{
|
|
||||||
width: 100%;
|
|
||||||
height: 17vw;
|
|
||||||
box-sizing:border-box;
|
|
||||||
padding-top: 19%;
|
|
||||||
padding-left: 23%;
|
|
||||||
font-family: "黑体";
|
|
||||||
font-size: 17px;
|
|
||||||
line-height: 17px;
|
|
||||||
// background-color: aqua;
|
|
||||||
background-image: url("@/assets/image/bltt.png");
|
|
||||||
background-size: cover;
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, ref } from "vue";
|
import { onMounted, ref } from "vue";
|
||||||
import { useTopicStore } from "@/stores/topic.js";
|
import { useTopicStore } from "@/stores/topic.js";
|
||||||
|
@ -124,3 +84,42 @@ onMounted(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
|
||||||
|
.topicInfoBox {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
font-family: "KaiTi"
|
||||||
|
}
|
||||||
|
.introduce {
|
||||||
|
margin: 10px auto;
|
||||||
|
width: 90%;
|
||||||
|
word-break: normal;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 17px;
|
||||||
|
margin-top:30px;
|
||||||
|
}
|
||||||
|
.tag{
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
.jg{
|
||||||
|
width: 100%;
|
||||||
|
height: 17vw;
|
||||||
|
box-sizing:border-box;
|
||||||
|
padding-top: 19%;
|
||||||
|
padding-left: 23%;
|
||||||
|
font-family: "黑体";
|
||||||
|
font-size: 17px;
|
||||||
|
line-height: 17px;
|
||||||
|
// background-color: aqua;
|
||||||
|
background-image: url("@/assets/image/bltt.png");
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
</style>
|
|
@ -1,8 +1,8 @@
|
||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory,createWebHashHistory } from 'vue-router'
|
||||||
import TokenService from '@/utils/token'
|
import TokenService from '@/utils/token'
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|
|
@ -84,11 +84,13 @@ export const useTopicStore = defineStore('useTopicStore', () => {
|
||||||
//提交答案
|
//提交答案
|
||||||
const submitAnswer=async(answer)=>{
|
const submitAnswer=async(answer)=>{
|
||||||
//先判断是否已经答过
|
//先判断是否已经答过
|
||||||
if(Topic.value.isAnswer){
|
// if(Topic.value.isAnswer){
|
||||||
ElMessage({ message: "已经做过了", type: "warning" });
|
// ElMessage({ message: "已经做过了", type: "warning" });
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
// console.log(Topic.value)
|
||||||
let res=await validationAnswer({questionId:Topic.value.id,answer});
|
let res=await validationAnswer({questionId:Topic.value.id,answer});
|
||||||
|
console.log(res);
|
||||||
if(res.code==200){
|
if(res.code==200){
|
||||||
setAnswer({
|
setAnswer({
|
||||||
isAnswer:true,
|
isAnswer:true,
|
||||||
|
|
|
@ -168,7 +168,10 @@ onMounted(() => {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
background-image: url("@/assets/image/loginback.jpg");
|
||||||
|
background-size: cover; // 背景图片铺满元
|
||||||
|
// background-position: center; // 背景图片居中显示
|
||||||
|
background-repeat: no-repeat; // 背景图片不重复
|
||||||
.main {
|
.main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
//占满的剩余空间
|
//占满的剩余空间
|
||||||
|
@ -230,7 +233,7 @@ onMounted(() => {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
// background-color: #f0f9cc;
|
// background-color: #f0f9cc;
|
||||||
background-image: url("@/assets/image/tibg.jpg");
|
background-image: url("@/assets/image/videoBack.jpg");
|
||||||
background-size: cover; // 背景图片铺满元
|
background-size: cover; // 背景图片铺满元
|
||||||
background-position: center; // 背景图片居中显示
|
background-position: center; // 背景图片居中显示
|
||||||
background-repeat: no-repeat; // 背景图片不重复
|
background-repeat: no-repeat; // 背景图片不重复
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
.loginBox {
|
.loginBox {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
background-image: url("@/assets/image/loginbg.jpg");
|
background-image: url("@/assets/image/loginback.jpg");
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
|
|
|
@ -150,7 +150,7 @@
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
// height: 100vh;
|
// height: 100vh;
|
||||||
background-image: url("@/assets/image/userbg.jpg");
|
background-image: url("@/assets/image/mimi.jpg");
|
||||||
background-size: cover; // 背景图片铺满元素
|
background-size: cover; // 背景图片铺满元素
|
||||||
background-position: center; // 背景图片居中显示
|
background-position: center; // 背景图片居中显示
|
||||||
background-repeat: no-repeat; // 背景图片不重复
|
background-repeat: no-repeat; // 背景图片不重复
|
||||||
|
@ -208,11 +208,7 @@
|
||||||
/* Firefox */
|
/* Firefox */
|
||||||
-ms-overflow-style: none;
|
-ms-overflow-style: none;
|
||||||
|
|
||||||
/* IE 10+ */
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
/* Chrome Safari */
|
|
||||||
}
|
|
||||||
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
|
|
@ -8,6 +8,7 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: './',
|
||||||
plugins: [
|
plugins: [
|
||||||
vue(),
|
vue(),
|
||||||
AutoImport({
|
AutoImport({
|
||||||
|
@ -15,7 +16,8 @@ export default defineConfig({
|
||||||
}),
|
}),
|
||||||
Components({
|
Components({
|
||||||
resolvers: [ElementPlusResolver()],
|
resolvers: [ElementPlusResolver()],
|
||||||
}),
|
})
|
||||||
|
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|
Loading…
Reference in New Issue