|
|
|
@ -7,6 +7,9 @@ import { addCourseApi } from '../../../api/user/crouse' |
|
|
|
|
import { getCourseListApi, getCourseDetailApi } from '../../../api/user/crouse' |
|
|
|
|
import request from '../../../utils/request' |
|
|
|
|
import { tool, client } from '../../../utils/alioss.js' |
|
|
|
|
import useUserStore from '@/store/modules/user' |
|
|
|
|
// import { useRoute } from 'vue-router' |
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
// 绑定弹框 |
|
|
|
|
const visibleDrawer = ref(false) |
|
|
|
|
// 绑定图片 |
|
|
|
@ -382,7 +385,7 @@ const upload = async (option: any) => { |
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<span class="dialog-footer" v-if="userStore.userInfo.roleId === 1"> |
|
|
|
|
<el-button @click="handleClose" size="large">取消</el-button> |
|
|
|
|
<el-button type="primary" size="large" @click="onSubmit()"> |
|
|
|
|
确认 |
|
|
|
|