摘要: 我们在使用官方提供的npm源安装各种依赖包的时候,下载速度会很慢,通常需要更换npm源。我们可以在终端中输入命令 npm config list 来查看 npm 源地址,默认地址为 metrics-registry = "https://registry.npmjs.org/" 国内常用的npm源地 阅读全文
posted @ 2021-07-30 23:29 智走 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: 生成 SSH 公钥 主要步骤 // 需要安装git $ cd ~/.ssh // 进入ssh目录(window也是这样) $ ls // 目录中需要包含文件 known_hosts id_rsa.pub // 公钥 id_rsa//私钥 // 要是没有id_rsa.pub,id_rsa需要生成 $ 阅读全文
posted @ 2021-04-30 15:58 智走 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 一、使用vite开发时的配置 配置 vue.config.js import {defineConfig} from 'vite'; import vue from '@vitejs/plugin-vue'; import path from 'path'; export default defin 阅读全文
posted @ 2021-03-24 16:37 智走 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: 查看该包的所有版本及最新版本 npm info jquery查看npmjs服务器上包的版本信息: 使用npm view jquery versions;这种方式可以查看npm服务器上所有的jquery版本信息; 使用npm view jquery version; 这种方式只能查看jquery的最新 阅读全文
posted @ 2021-03-17 17:43 智走 阅读(786) 评论(0) 推荐(1) 编辑
摘要: 更改数据库密码: 用户root的密码更改为root):mysql> set password for root@localhost = password(‘root’); 阅读全文
posted @ 2021-03-17 10:54 智走 阅读(26) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/cauchy6317/article/details/81570240 阅读全文
posted @ 2021-03-16 22:22 智走 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 设置vue.config.js文件 1 module.exports = { 2 css: { 4 loaderOptions: { 5 scss: { 6 prependData: '@import "./src/assets/css/variables.scss";' 7 } 8 } 9 } 1 阅读全文
posted @ 2021-03-10 16:50 智走 阅读(4217) 评论(0) 推荐(0) 编辑
摘要: component使用对象形式,使用render函数进行处理 1 { 2 path: '/system', 3 name: 'System', 4 meta: { 5 title: '系统设置', 6 icon: 'el-icon-setting' 7 }, 8 component: { 9 ren 阅读全文
posted @ 2021-03-10 16:17 智走 阅读(2482) 评论(0) 推荐(0) 编辑
摘要: 使用Win+R命令,输入powershell,然后确定, 进入终端需要执行 Start-Process powershell -Verb runAs 切换到管理员命令窗口, 执行 set-ExecutionPolicy RemoteSigned,执行策略选择 Y。 阅读全文
posted @ 2021-02-17 20:36 智走 阅读(1146) 评论(0) 推荐(0) 编辑
摘要: 一、循环:语法 方式1:@for $i from 开始值 through 结束值 包含结束值方式2:@for $i from 开始值 to 结束值 不包含结束值 1 @for $i from 1 through 3{ 2 .padding-left#{2 * $i + 8}{ 3 padding-l 阅读全文
posted @ 2020-12-23 10:44 智走 阅读(2222) 评论(0) 推荐(0) 编辑