# PyLearn **Repository Path**: TangjiasGit/py-learn ## Basic Information - **Project Name**: PyLearn - **Description**: 毕业设计python在线学习系统前端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-11-20 - **Last Updated**: 2025-07-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PyLearn This template should help get you started developing with Vue 3 in Vite. ## Recommended IDE Setup [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur). ## Customize configuration See [Vite Configuration Reference](https://vite.dev/config/). ## Project Setup ```sh npm install ``` ### Compile and Hot-Reload for Development ```sh npm run dev ``` ### Compile and Minify for Production ```sh npm run build ``` index 【使用markdown】 https://markdown.com.cn/editor/
【组件库】 https://hu-snail.github.io/vue3-resource/platform/web/others.html
【图标】 https://iconpark.oceanengine.com/official
【markdown】https://imzbf.github.io/md-editor-v3/zh-CN/demo
【vueuse】https://vueuse.nodejs.cn/ 【Mitt事件总线】Mitt 【naive-ui】npm i -D naive-ui https://www.naiveui.com/zh-CN/os-theme/docs/installation 【ant-design 没有用上】 【代码编辑器】npm install monaco-editor https://novaalone.github.io/monaco-editor-doc-zh/guide/start.html python在线运行 Brython 或者Skulpt //https://juejin.cn/post/6987782802767314958 【Md文档编辑器】https://www.wangeditor.com/v5/installation.html //npm install @wangeditor/editor-for-vue@next --save //npm install @wangeditor/editor --save //文件下载 const fileId = ref(0) async function xz() { try { // 调用请求传入文件id, const response = await downloadMaterial(fileId); console.log("数据",[response.data]); const url = window.URL.createObjectURL(new Blob([response.data],{ type: '*/*' })); console.log("打印",url); // 创建一个新的元素,用于模拟点击下载 const link = document.createElement('a'); // 将创建的对象URL赋值给元素的href属性 link.href = url; // 设置元素的download属性,指定下载后的文件名称为12.jpg link.setAttribute('download','1.jpg'); // 设置下载文件的名称 console.log("打印节点",link); // 将元素添加到文档的body中 document.body.appendChild(link); // 模拟点击元素,触发下载操作 link.click(); // 模拟点击实现下载 document.body.removeChild(link); // 下载完成后移除元素 window.URL.revokeObjectURL(url); // 释放对象 URL 对象 } catch (error) { console.error('下载文件失败:', error); } }