上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: confirm运行时,如果不加.catch捕获,会出现错误提示,解决办法: 方法1: vue.config.js中 关闭全局错误提示 module.exports = defineConfig({ transpileDependencies: true, lintOnSave: false, dev 阅读全文
posted @ 2023-11-16 21:02 笑而不语心自闲 阅读(1753) 评论(0) 推荐(0)
摘要: export function Team(data = {}) { return service.request({ method: "get", url: "https://example.com/api/endpoint", // 替换成实际的API端点 params: { param1: da 阅读全文
posted @ 2023-11-07 22:49 笑而不语心自闲 阅读(832) 评论(0) 推荐(0)
摘要: package.json中加入 Windows: "set NODE_OPTIONS openssl-legacy-provider && " Linux & Mac OS: "export NODE_OPTIONS openssl-legacy-provider && " 例如: "scripts 阅读全文
posted @ 2023-10-28 16:02 笑而不语心自闲 阅读(163) 评论(0) 推荐(0)
摘要: 将"unplugin-auto-import"降低到"^0.5.11"版本 阅读全文
posted @ 2023-10-20 15:28 笑而不语心自闲 阅读(645) 评论(0) 推荐(0)
摘要: settings.py REST_FRAMEWORK = { 'EXCEPTION_HANDLER': 'xxx.exception_handler', } 新建.py文件,名称任意 xxx.py from django.db import DatabaseError from rest_frame 阅读全文
posted @ 2023-08-03 11:48 笑而不语心自闲 阅读(25) 评论(0) 推荐(0)
摘要: Python 3.5以下的版本: def add_numbers(a: int, b: int) -> int: return a + b Python 3.5以上的版本: def add_numbers(a, b): # type: (int, int) -> int return a + b 这 阅读全文
posted @ 2023-07-26 06:45 笑而不语心自闲 阅读(82) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-07-19 10:36 笑而不语心自闲 阅读(15) 评论(0) 推荐(0)
摘要: startapp时出现 CommandError: 'xxxxx' conflicts with the name of an existing Python module and cannot be used as an app name. Please try another name.错误 原 阅读全文
posted @ 2023-07-13 19:41 笑而不语心自闲 阅读(603) 评论(0) 推荐(0)
摘要: 通过pycharm新建app时,需要指定目录。因为manage.py和APP是在同一级目录下,不指定目录的话,新建的app会和APP在同一级。 1.首先先在APP目录下,新建一个和要建的app同名的文件夹,比如goods,删除多余的__init__.py文件,不然在创建的时候会缺少migration 阅读全文
posted @ 2023-07-02 13:25 笑而不语心自闲 阅读(442) 评论(0) 推荐(0)
摘要: def user_directory_path(instance, name): """ clean_data内容: for k ,v in clean_data: K: file V: record1301DL00220230602全部.txt K: name V: record1301DL002 阅读全文
posted @ 2023-06-04 15:55 笑而不语心自闲 阅读(97) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页