Merge pull request 'zdg_dev' (#84) from zdg_dev into main
Reviewed-on: #84
This commit is contained in:
commit
2fb6828154
|
@ -210,13 +210,14 @@ emitter.on('changeResult', (item) => {
|
||||||
const HTTP_SERVER_API = (type, params = {}) => {
|
const HTTP_SERVER_API = (type, params = {}) => {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'addSmarttalk': { // 获取课程
|
case 'addSmarttalk': { // 获取课程
|
||||||
|
const node = courseObj.node || {}
|
||||||
const def = {
|
const def = {
|
||||||
fileId: '', // 文件id - Entpcoursefile 对应id
|
fileId: '', // 文件id - Entpcoursefile 对应id
|
||||||
fileFlag: 'aptist',
|
fileFlag: 'aptist',
|
||||||
fileShowName: courseObj.coursetitle + '.aptist',
|
fileShowName: node.itemtitle + '.aptist',
|
||||||
textbookId: courseObj.textbookId,
|
textbookId: node.rootid,
|
||||||
levelFirstId: courseObj.levelFirstId,
|
levelFirstId: node.parentid||node.id,
|
||||||
levelSecondId: courseObj.levelSecondId,
|
levelSecondId: node.parentid && node.id,
|
||||||
fileSource: '个人',
|
fileSource: '个人',
|
||||||
fileRoot: '备课'
|
fileRoot: '备课'
|
||||||
}
|
}
|
||||||
|
@ -314,6 +315,7 @@ const toRousrceUrl = async(o) => {
|
||||||
const curNode = reactive({})
|
const curNode = reactive({})
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
let data = sessionStore.get('subject.curNode')
|
let data = sessionStore.get('subject.curNode')
|
||||||
|
console.log('data', sessionStore)
|
||||||
Object.assign(curNode, data);
|
Object.assign(curNode, data);
|
||||||
courseObj.node = data
|
courseObj.node = data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue