Completion of APIs except for user progress
This commit is contained in:
@@ -260,10 +260,17 @@
|
||||
|
||||
<script setup>
|
||||
import { useToast } from "vue-toastification";
|
||||
const { authUser } = useAuth();
|
||||
console.log('user', authUser.value === null);
|
||||
const props = defineProps(["props"], ["access"]);
|
||||
const toast = useToast()
|
||||
const router = useRouter()
|
||||
const paymentHandler = (id) => {
|
||||
|
||||
if (authUser.value === null) {
|
||||
return router.push({
|
||||
path: '/login'
|
||||
})
|
||||
}
|
||||
const data = useFetch("/api/user/registerCourse", {
|
||||
method: "POST",
|
||||
body: {
|
||||
|
||||
Reference in New Issue
Block a user