摘要: 组件类型 import {ComponentPublicInstance, getCurrentInstance} from "vue"; export abstract class CommonComponent { proxy?: ComponentPublicInstance = null; 阅读全文
posted @ 2024-07-29 10:39 fight139 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 发布版本后静态文件资源找不到问题 阅读全文
posted @ 2024-07-24 21:25 fight139 阅读(1) 评论(0) 推荐(0) 编辑
摘要: vite https接口 server: { hmr: true, port: 8002, host: '0.0.0.0', proxy: { '/dev-api': { // target: 'http://127.0.0.1:9000', // 接口基地址 // target: 'http:// 阅读全文
posted @ 2024-07-23 10:18 fight139 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 创建dblink create public database link citic_market connect to jh4jtest identified by jh4jtest using '(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =1 阅读全文
posted @ 2024-07-22 20:01 fight139 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 只需要禁用gitlab插件即可 阅读全文
posted @ 2024-07-22 09:06 fight139 阅读(3) 评论(0) 推荐(0) 编辑
摘要: vue模板编译器 import {ASTElement, compile} from 'vue-template-compiler'; import {TableColumnDesc} from "@/components/table/base-table/type.ts"; export cons 阅读全文
posted @ 2024-06-19 16:48 fight139 阅读(2) 评论(0) 推荐(0) 编辑
摘要: shell文件 基本语法 定义变量 阅读全文
posted @ 2024-04-24 16:48 fight139 阅读(2) 评论(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 阅读(4) 评论(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 阅读(156) 评论(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 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 强制更新 git强制覆盖: git fetch --all git reset --hard origin/master git pull 阅读全文
posted @ 2023-09-21 16:06 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 阅读(262) 评论(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 阅读(8) 评论(0) 推荐(0) 编辑