一些逻辑修改
This commit is contained in:
parent
a8e8fc26ed
commit
d3ce47bd52
|
@ -1 +1,2 @@
|
|||
VITE_APP_BASE_API = 'http://127.0.0.1:8088'
|
||||
# VITE_APP_BASE_API = 'http://127.0.0.1:8088'
|
||||
VITE_APP_BASE_API = 'http://aw.9miao.fun/prod-api'
|
|
@ -1 +1 @@
|
|||
VITE_APP_BASE_API = 'https://aw.9miao.fun/prod-api'
|
||||
VITE_APP_BASE_API = 'http://aw.9miao.fun/prod-api'
|
|
@ -36,6 +36,7 @@
|
|||
<script setup>
|
||||
import { onMounted, ref } from "vue";
|
||||
import { useTopicStore } from "@/stores/topic.js";
|
||||
import { ElMessage } from "element-plus";
|
||||
const topStore = useTopicStore();
|
||||
const radio = ref('');
|
||||
const props = defineProps({
|
||||
|
@ -65,6 +66,10 @@ const props = defineProps({
|
|||
tags: { type: Array, default: null },
|
||||
});
|
||||
const tupClick=async()=>{
|
||||
if(radio.value==null){
|
||||
ElMessage.error("请选择答案");
|
||||
}
|
||||
console.log("radio.value",radio.value)
|
||||
let res=await topStore.submitAnswer(radio.value);
|
||||
console.log("res",res);''
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ export const useTopicStore = defineStore('useTopicStore', () => {
|
|||
// ElMessage({ message: "已经做过了", type: "warning" });
|
||||
// return;
|
||||
// }
|
||||
// console.log(Topic.value)
|
||||
console.log(Topic.value)
|
||||
let res=await validationAnswer({questionId:Topic.value.id,answer});
|
||||
console.log(res);
|
||||
if(res.code==200){
|
||||
|
|
Loading…
Reference in New Issue