feat:修改

This commit is contained in:
lixg
2023-03-02 03:10:52 +08:00
parent b5beeeaa10
commit 1e577853d2
4 changed files with 9 additions and 6 deletions

View File

@@ -161,15 +161,15 @@ request(DISCUSS_LIST, {
id, id,
}) })
.then((e) => { .then((e) => {
state.info = e.data;
console.log("讨论详情", state.info);
state.discussId = e.data.discussDtoList[0].id;
getPostList(e.data.discussDtoList[0].id);
if (e.code === 6) { if (e.code === 6) {
router.push({ router.push({
path: "/notpath", path: "/notpath",
}); });
} }
state.info = e.data;
console.log("讨论详情", state.info);
state.discussId = e.data.discussDtoList[0].id;
getPostList(e.data.discussDtoList[0].id);
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);

View File

@@ -2,7 +2,7 @@
* @Author: lixg lixg@dongwu-inc.com * @Author: lixg lixg@dongwu-inc.com
* @Date: 2023-02-06 18:26:23 * @Date: 2023-02-06 18:26:23
* @LastEditors: lixg lixg@dongwu-inc.com * @LastEditors: lixg lixg@dongwu-inc.com
* @LastEditTime: 2023-03-02 01:57:28 * @LastEditTime: 2023-03-02 02:38:59
* @FilePath: /stu_h5/src/views/examination/ExternalExam.vue * @FilePath: /stu_h5/src/views/examination/ExternalExam.vue
* @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
--> -->
@@ -55,12 +55,12 @@ const state = reactive({
request(EXTERNALEXAM, { externalId: courseId }) request(EXTERNALEXAM, { externalId: courseId })
.then((res) => { .then((res) => {
console.log("获取考试", res); console.log("获取考试", res);
state.datainfo = res.data;
if (res.code === 6) { if (res.code === 6) {
router.push({ router.push({
path: "/notpath", path: "/notpath",
}); });
} }
state.datainfo = res.data;
}) })
.catch((err) => { .catch((err) => {
console.log(err); console.log(err);

View File

@@ -119,6 +119,7 @@ const { data } =
taskId && taskId !== "undefined" taskId && taskId !== "undefined"
? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => { ? useRequest(TASK_WORK_DETAIL, { workId, taskId }, (e) => {
if (e.code === 6) { if (e.code === 6) {
console.log("作业判断", e);
router.push({ router.push({
path: "/notpath", path: "/notpath",
}); });
@@ -126,6 +127,7 @@ const { data } =
}) })
: useRequest(TASK_WORK_DETAIL, { workId }, (e) => { : useRequest(TASK_WORK_DETAIL, { workId }, (e) => {
if (e.code === 6) { if (e.code === 6) {
console.log("作业判断", e);
router.push({ router.push({
path: "/notpath", path: "/notpath",
}); });

View File

@@ -223,6 +223,7 @@ const returnclick = () => {
}; };
const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId }, (e) => { const { data } = useRequest(TASK_BROADCAST_DETAIL, { liveId }, (e) => {
console.log("直播判断", e);
if (e.code === 6) { if (e.code === 6) {
router.push({ router.push({
path: "/notpath", path: "/notpath",