- 博客(38)
- 资源 (2)
- 收藏
- 关注
原创 《vue3项目开发实战》之项目配置(router路由)
在App.vue文件中增加 <router-view></router-view>,这样就可以按路由显示。创建路由文件:src/router/index.ts,src/router/routes.ts。index.ts:路由创建、守卫等。在main.ts文件中引入路由。routes.ts:自定义路由。index.vue 文件。main.ts文件内容。routes.ts文件。
2023-05-31 13:28:36
401
原创 【eslint】TypeError: this.libOptions.parse is not a function
使用node v14,v16 版本安装eslint出现的错误。重新安装eslint版本。
2023-05-31 10:19:28
772
原创 【已解决】pnpm(Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PNP
pnpm(Run “pnpm setup“ to create it automatically, or set the global-bin-dir setting, or the PNP
2022-08-03 11:28:58
14718
3
原创 Vue3 [@vue/compiler-sfc] `defineProps` is a compiler macro and no longer needs to be imported.
vue3处理告警,setup语法糖
2022-05-26 09:57:38
9216
2
原创 Invalid watch source: A watch source can only be a getter/effect function, a ref, a reactive object
[Vue warn]: Invalid watch source: A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.
2022-01-12 16:14:13
19859
2
原创 `callback` is deprecated. Please return a promise instead.
`callback` is deprecated. Please return a promise instead.
2022-01-11 17:17:32
4378
原创 upload上传文件 formData变成[object,object]
前端上传文件,浏览器里显示成file参数为[object ]形式,而不是(binary)
2022-01-11 14:12:20
17344
3
原创 vuepress-theme-reco 博客主题使用
## 前提> 安装vuepress## 安装vuepress-theme-reco> 安装npm install vuepress-theme-reco --save-dev> 引用// .vuepress/config.jsmodule.exports = { theme: 'reco'} ## 插件> 插件安装//内置插件不需要下载安装,直接引用就可以npm install <pagkageName> -D
2021-12-28 17:40:31
1423
原创 《vue3项目开发实战》之 项目配置二
本文将安装router、vuex、less、element-plus、ESLint 等 ESLint,pretty 1.安装包npm install @typescript-eslint/eslint-plugin -Dnpm install @typescript-eslint/parser -Dnpm install eslint -Dnpm install eslint-plugin-vue -Dnpm install vue-eslint-parser -Dnpm ins
2021-12-13 15:29:17
1261
原创 《vue3项目开发实战》之项目配置(vite,ts)
本文基于上一篇《vue3项目开发实战》之vite2创建项目_小洋葱的博客-优快云博客在使用vite生成项目后,缺少vuex,router等插件和配置。1. 配置vite2 【vite.config.ts】配置 Vite | Vite 官方中文文档https://cn.vitejs.dev/config1.1 别名resolve.alias resolve:{ alias:{ '/@/': '/src/' } }1.2css预处理...
2021-12-13 11:45:05
1138
原创 A plugin must either be a function or an object with an “install“ function.
问题: vue3 的插件需要install方法解决:检查main.ts 文件中 app.use()
2021-12-02 10:13:45
7388
7
原创 Set operation on key “visible“ failed: target is readonly.
vue3 报错 Set operation on key "visible" failed: target is readonly.变量visible只读属性,无法修改。解决:visible 改成响应式 // 原先visible 从props.modal获取, const { modalData: { visible }} = props//修改 const { modalData: { visible }} = props const visibleNew = ref...
2021-12-02 09:56:07
9946
原创 form表单校验 rules规则
<a-form ref="formRef" :model="formState" :rules="rules"> <a-form-item ref="name" label="名称" name="name"> <a-input v-model:value="formState.name"/> </a-form-item> <a-form-item label="类型" name="type"> <a.
2021-11-26 13:40:46
5728
1
原创 TypeError: (intermediate value) is not iterable
TypeError: (intermediate value) is not iterable promise报错
2021-11-17 12:05:33
3601
转载 vuepress搭建个人博客
相关技术:vuepress,Markdown, Github Pages,转载【https://www.cnblogs.com/softidea/p/10084946.html】
2021-09-01 14:26:00
113
原创 企业微信扫码登录
目录2.业务流程3.具体实现1.注册企业微信,登录企业微信管理平台https://work.weixin.qq.com/2.创建应用(用于扫码登录)3.在应用中找到开发者接口(最下面),启用和配置企业微信授权登录;1.官网相关资料https://open.weixin.qq.com/ 微信开放平台(可注册)https://fuwu.weixin.qq.com/微信服务平台https://work.weixin.qq.com/api/doc/90000/90135...
2021-07-23 03:02:00
4355
原创 SSH会话保持 一段时间无操作,无法输入
解决思想:设置心跳,保持会话。 第一种服务端linux上修改 方法一:修改/etc/ssh/sshd_config文件vim /etc/ssh/sshd_config###################################ClientAliveInterval 0#ClientAliveCountMax 3 #改成如下配置ClientAliveInterval 60ClientAliveCountMax 3###########################
2021-04-12 17:41:31
776
原创 百度统计使用教程二:了解统计指标
系列文章目录百度统计使用教程一百度统计使用教程二文章目录系列文章目录前言一、流量分析1.实时访客2.趋势分析二、来源分析三、访问分析四、转化分析五、访客分析六、优化分析总结前言学习和了解百度统计的指标数据。一、流量分析1.实时访客1.图表展示最近半小时的 ●浏览量(PV)●访客数(UV) ; 60秒刷新一次。图表维度秒(s)2.访问明细(仅提供两周内的访问明细,最多5000条)2.趋势分析更详细的数...
2021-04-06 18:25:57
956
原创 Shell学习
shellh脚本#文件第一行 #!/bin/bash#在脚本里引入其他shell 函数(1.引入文件,2.直接使用函数或参数)source ./a.shellh #source 文件路径. ./a.shellh #. 文件路径#变量$var${var}#传参数$1 ${1} 第一个参数$2 ${2} 第二个参数#$# 是传给脚本的参数个数...
2019-03-07 11:05:33
160
原创 IntelliJ IDEA 常用快捷键 超实用
太多了记不住。Ctrl+Space 提示 Ctrl+Shift+Space 提示,自动补全代码 Alt+Enter 修复,自动补全代码 Ctrl+Alt+L 格式化 Ctrl+Alt+O 自动引入import Ctrl+D 复制并粘贴(行) Ctrl+Y 删除(行) Ctrl+G 跳转到指定行 Shift+Shift 查找所有资源 Ctrl+F 查找文件内资源 Ctr...
2018-09-01 19:12:43
310
原创 Linux 查找正在运行nginx软件
参考资料:https://blog.youkuaiyun.com/pengone/article/details/78583561Linux在启动一个进程时,系统会在/proc下创建一个以PID命名的文件夹,该文件下包括一个名为exe的文件即记录了绝对路径,通过ll或ls –l命令即可查看。1.查看nginx pidps -ef|grep nginx 得到pid 为15782....
2018-09-01 17:18:23
2751
原创 IDEA 本地git库项目关联及码云项目上传下载
将本地git库中项目导入IDEA中,项目右键发现没有Git选项,无法pull或push代码。 –关联本地项目 创建git本地库 VCS -> Import into Version Control -> Create Git Reposito 点击“OK”,再次项目右键就有Git选项了。
2017-06-27 19:25:38
627
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人