Skip to content

Commit

Permalink
add sharelink error
Browse files Browse the repository at this point in the history
  • Loading branch information
as6325400 committed Jul 9, 2024
1 parent 322ea50 commit b707945
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
1 change: 0 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ declare module 'vue' {
InputArea: typeof import('./src/components/pages/main/inputArea.vue')['default']
Intro: typeof import('./src/components/pages/home/intro.vue')['default']
KebabButton: typeof import('./src/components/common/optionButton/kebabButton.vue')['default']
Loading_page: typeof import('./src/components/common/loading_page.vue')['default']
LoadingSpinner: typeof import('./src/components/common/loadingSpinner.vue')['default']
Loginarea: typeof import('./src/components/pages/login/loginarea.vue')['default']
Modal: typeof import('./src/components/pages/main/modal.vue')['default']
Expand Down
14 changes: 10 additions & 4 deletions src/components/pages/main/course_tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ onMounted(async () => {
return;
}
let result = await getsharecourse(recordId);
const data = result.json_data;
console.log(data);
store.dispatch("importTabs", data);
window.location.href = "/#/main";
console.log(result);
if(result){
const data = result.json_data;
// console.log(data);
store.dispatch("importTabs", data);
window.location.href = "/#/main";
}
else{
window.location.href = "/#/record/error";
}
});
const tabs = computed(() => store.state.course.TotalCourseData);
Expand Down
2 changes: 1 addition & 1 deletion src/views/page_record_error.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ErrorBox from "@components/common/error_box.vue";
style="height: calc(100vh - 8rem)"
class="flex items-center justify-center">
<ErrorBox
error="本分享連結已過期,請聯絡擁有者重新產生。"></ErrorBox>
error="分享連結錯誤或者已過期"></ErrorBox>
</div>
<Foot />
</div>
Expand Down

0 comments on commit b707945

Please sign in to comment.