摘要: shell文件 基本语法 定义变量 阅读全文
posted @ 2024-04-24 16:48 fight139 阅读(1) 评论(0) 推荐(0) 编辑
摘要: ast - 编译成代码 import * as path from 'path' import type { Plugin, ResolvedConfig } from 'vite' import { NodePath } from '@babel/traverse'; import { JSXEl 阅读全文
posted @ 2024-04-11 13:20 fight139 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 异步组件内插槽无法获取组件实例 app.component( cName, defineAsyncComponent(async () => { this.registryNumber++; await setComponentOptions(component); return new Promi 阅读全文
posted @ 2023-12-14 20:51 fight139 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 依赖 "vitest": "0.34.6", "@vue/test-utils": "2.4.3", "axios-mock-adapter": "^1.22.0", 示例 import { mount } from "@vue/test-utils"; import { test, vi } fr 阅读全文
posted @ 2023-12-11 20:54 fight139 阅读(85) 评论(0) 推荐(0) 编辑
摘要: proxy: { "/dev-api": { target: "http://172.18.247.123:9000", rewrite: (path) => path.replace(/^/dev-api/, ''), configure: (proxy, _options) => { proxy 阅读全文
posted @ 2023-11-20 17:40 fight139 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 强制更新 git强制覆盖: git fetch --all git reset --hard origin/master git pull 阅读全文
posted @ 2023-09-21 16:07 fight139 阅读(10) 评论(0) 推荐(0) 编辑
摘要: ### 环境 1. vue3 2. "vuedraggable": "^4.1.0" ### 物料区 ```vue {{ element.name }} ``` ### 预览区 ```vue {{ element.name }} ``` ### iframe ```vue ``` 阅读全文
posted @ 2023-08-23 09:45 fight139 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 锁定版本 npm shrinkwrap 生成npm-shrinkwrap.json文件 node版本要求 yarn config set ignore-engines true 阅读全文
posted @ 2023-07-13 15:07 fight139 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ### okhttp ```java public ApiResult exchange(Class clazz, Method method) throws Exception { FeignClient feignClient = (FeignClient)clazz.getAnnotation 阅读全文
posted @ 2023-07-10 16:49 fight139 阅读(6) 评论(0) 推荐(0) 编辑
摘要: ### rollup-plugin-visualizer 打包耗时打印 ```shell pnpm add rollup-plugin-visualizer -D ``` ```ts import { visualizer } from 'rollup-plugin-visualizer'; exp 阅读全文
posted @ 2023-07-07 18:06 fight139 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ```vue --> 点击菜单 ``` 阅读全文
posted @ 2023-07-07 15:01 fight139 阅读(5) 评论(0) 推荐(0) 编辑
摘要: ### 驱动 ```xml com.microsoft.sqlserver mssql-jdbc 6.2.0.jre8 ``` ### SSL连接出错 ```shell [08S01] 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。 错误:“The serve 阅读全文
posted @ 2023-06-28 13:16 fight139 阅读(23) 评论(0) 推荐(0) 编辑
摘要: ```js import axios from "axios"; import qs from "qs" const show = async function () { const result = []; const files = await showDirectoryPicker(); co 阅读全文
posted @ 2023-06-13 13:49 fight139 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 链式编程缩进 阅读全文
posted @ 2023-02-26 12:23 fight139 阅读(7) 评论(0) 推荐(0) 编辑
摘要: ### svg symbol ```html ``` 使用`symbol`注册svg的优点: - 复用 - 拓展性高:支持宽度、高度、颜色等属性修改 ### 使用场景 从后端或某个目录下获取svg字符串,然后注册到body后,供当前页面使用 阅读全文
posted @ 2023-02-24 17:54 fight139 阅读(15) 评论(0) 推荐(0) 编辑