uniapp+vue3+ts 使用pinia报错"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs Read More
posted @ 2024-03-23 11:29 秃头的铲屎官 Views(156) Comments(0) Diggs(0) Edit
1、安装插件 yarn add pinia-plugin-persistedstate 2、在store/index.js 中使用 import { createPinia,defineStore } from 'pinia' import piniaPluginPersistedstate fro Read More
posted @ 2024-01-16 15:35 秃头的铲屎官 Views(1033) Comments(0) Diggs(0) Edit
1、新建一个名为ContextMenu.vue的文件 <template> <div ref="containerRef"> <slot></slot> <Teleport to="body"> <Transition @beforeEnter="handleBeforeEnter" @enter= Read More
posted @ 2023-10-20 10:50 秃头的铲屎官 Views(1708) Comments(0) Diggs(1) Edit
今天新启动一个项目,在 npm install 安装依赖项时出现报错。 $ npm install > husky@0.14.3 install D:\programs\rubik-web\node_modules\husky > node ./bin/install.js husky settin Read More
posted @ 2023-07-04 14:31 秃头的铲屎官 Views(1956) Comments(0) Diggs(0) Edit
错误 Vue Template execution failed: ReferenceError: BASE_URL is not defined ReferenceError: BASE_URL is not defined 解决 替换 index.html 替换前 <link rel="icon Read More
posted @ 2023-06-02 09:21 秃头的铲屎官 Views(345) Comments(0) Diggs(0) Edit
"hasInjectionContext" is not exported by "node_modules/vue-demi/lib/index.mjs", imported by "node_modules/pinia/dist/pinia.mjs". 11:36:19.397 at ../no Read More
posted @ 2023-06-01 11:41 秃头的铲屎官 Views(2467) Comments(0) Diggs(2) Edit
前言 在前端开发中,除了常用的UI组件库以外,a56爆大奖在线娱乐们还会涉及到基于公司业务,需要定制化开发一些业务组件,还有随着项目的增多,开发人员的增多,为了提高工作效率,a56爆大奖在线娱乐们就需要统一管理好已开发好的业务组件。这时候a56爆大奖在线娱乐们就需要搭建自己的组件库,因为涉及到一些公司的业务,a56爆大奖在线娱乐们只能发布到私服的npm上。下面几点是a56爆大奖在线娱乐们 Read More
posted @ 2023-04-07 09:32 秃头的铲屎官 Views(5063) Comments(0) Diggs(0) Edit
页面引入js文件,底部会有个红色提示 处理方式: 在 tsconfig.json 加上 baseUrl 和 paths 的 即可。 { "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, "module" Read More
posted @ 2023-03-16 16:44 秃头的铲屎官 Views(4343) Comments(0) Diggs(0) Edit
方式一: <template> <div class="table-container"> <el-table size="mini" :header-cell-style="{'background':'#d3e0ff'}" :data="tableData" :span-method="obje Read More
posted @ 2023-01-06 09:56 秃头的铲屎官 Views(1007) Comments(0) Diggs(0) Edit
<el-table size="mini" :stripe="false" :header-cell-style="{'background':'#d3e0ff'}" :row-class-name="rowClass" :data="tableData" :span-method="objectS Read More
posted @ 2023-01-06 09:48 秃头的铲屎官 Views(579) Comments(0) Diggs(0) Edit