mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 04:46:48 +08:00
fix:修改外链信息获取
This commit is contained in:
@@ -42,11 +42,11 @@
|
|||||||
<div class="box"></div>
|
<div class="box"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="">
|
<div class="">
|
||||||
<button class="tijiao" @click="handleClick(state.datainfo.linkAddress)">查看</button>
|
<button class="tijiao" @click="handleClick(datainfo.linkAddress)">查看</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="all" style="font-size:14px;color:rgba(51, 51, 48, 1);">
|
<div class="all" style="font-size:14px;color:rgba(51, 51, 48, 1);">
|
||||||
{{ state.datainfo.linkAddress ? state.datainfo.linkAddress : "-" }}
|
{{ datainfo.linkAddress ? datainfo.linkAddress : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<!-- <div style="display: flex; align-items: center"></div> -->
|
<!-- <div style="display: flex; align-items: center"></div> -->
|
||||||
<div class="all" style="font-size:14px;color:rgba(51, 51, 48, 1);">
|
<div class="all" style="font-size:14px;color:rgba(51, 51, 48, 1);">
|
||||||
<div>
|
<div>
|
||||||
{{ state.datainfo.linkDescription ? state.datainfo.linkDescription : "暂无链接说明" }}
|
{{ datainfo.linkDescription ? datainfo.linkDescription : "暂无链接说明" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -80,7 +80,7 @@
|
|||||||
import {
|
import {
|
||||||
LINKGETONE
|
LINKGETONE
|
||||||
} from "@/api/api";
|
} from "@/api/api";
|
||||||
import {reactive} from "vue";
|
import {ref} from "vue";
|
||||||
import {useRoute,useRouter} from "vue-router/dist/vue-router";
|
import {useRoute,useRouter} from "vue-router/dist/vue-router";
|
||||||
import {useTaskPage} from "@/api/useCommon";
|
import {useTaskPage} from "@/api/useCommon";
|
||||||
|
|
||||||
@@ -93,15 +93,13 @@
|
|||||||
router.back();
|
router.back();
|
||||||
};
|
};
|
||||||
|
|
||||||
const state = reactive({
|
const datainfo = ref({});
|
||||||
datainfo: {}
|
|
||||||
})
|
|
||||||
|
|
||||||
//获取基本信息
|
//获取基本信息
|
||||||
request(LINKGETONE, {linkId:courseId}).then(res=>{
|
request(LINKGETONE, {linkId:courseId}).then(res=>{
|
||||||
console.log("我是获取的外链基本信息1",res)
|
console.log("我是获取的外链基本信息1",res)
|
||||||
state.datainfo = res.data
|
datainfo.value = res.data;
|
||||||
console.log("我是获取的外链基本信息2",state.datainfo)
|
console.log("我是获取的外链基本信息2",datainfo.value)
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
console.log(err)
|
console.log(err)
|
||||||
});
|
});
|
||||||
@@ -110,8 +108,7 @@
|
|||||||
|
|
||||||
// 查看外链
|
// 查看外链
|
||||||
const handleClick = async(url) => {
|
const handleClick = async(url) => {
|
||||||
console.log('我是获取的外链基本信息5', state.dataInfo)
|
console.log('我是获取的外链基本信息', datainfo.value)
|
||||||
console.log('我是获取的外链基本信息6', state)
|
|
||||||
// await request(UPDATE_CURRENT_TASK, { id: d.id, type: PROJECT, pid: projectId, name: d.name })
|
// await request(UPDATE_CURRENT_TASK, { id: d.id, type: PROJECT, pid: projectId, name: d.name })
|
||||||
// if ( d.type == 7 ) {
|
// if ( d.type == 7 ) {
|
||||||
// d.status !== 1 && await request(STUDY_RECORD, {
|
// d.status !== 1 && await request(STUDY_RECORD, {
|
||||||
|
|||||||
Reference in New Issue
Block a user