更多技术文档共57篇
Nginx实现字符串密钥认证-明恒博客

Nginx实现字符串密钥认证

废话不多说,直接上配置文件: server { listen 9999; server_name localhost; location /docs { proxy_pass http://127.0.0.1:8999/docs; } location /openapi.json { proxy_pass http://127.0...
你的明明呐丶的头像-明恒博客你的明明呐丶3个月前
04514
Flutter初始化时使用包含context的Widget导致报错的解决办法-明恒博客

Flutter初始化时使用包含context的Widget导致报错的解决办法

错误原因我这里主要是因为在initState方法的时候初始化了一个widget数组,而这个widget数组当中使用了包含context的东西,所以在页面并没有初始化完成之前,context是没有的,所以就会导致这个...
你的明明呐丶的头像-明恒博客你的明明呐丶8个月前
07414
解决 Flutter App Run 卡在 Running Gradle task 'assembleDebug'...-明恒博客

解决 Flutter App Run 卡在 Running Gradle task ‘assembleDebug’…

新建了一个Flutter工程后,Run APP 却一直卡在了Running Gradle task ‘assembleDebug’… 这里。百度查询原因是因为 Gradle 的 Maven 仓库在国外, 因此需要使用阿里云的镜像地址。 1、修改项目...
你的明明呐丶的头像-明恒博客你的明明呐丶9个月前
05012
nodejs记录:liunx服务器使用dev运行项目出现node:events:491错误的解决办法-明恒博客

nodejs记录:liunx服务器使用dev运行项目出现node:events:491错误的解决办法

我使用的是vue3,报这个错的原因是因为liunx无法调用浏览器打开项目。解决办法:server: { port: viteEnv.VITE_PORT, open: false, //将此设置改为false host: '0.0.0.0', proxy: { '/api/v1': ...
你的明明呐丶的头像-明恒博客你的明明呐丶11个月前
05311
npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败解决-明恒博客

npm ERR! notarget No matching version found for xxx@^1.0.64. npm 插件安装失败解决

问题 今天使用npm install安装项目依赖的时候报错:npm ERR! notarget No matching version found for xxx@^1.0.64. npm npm ERR! code ETARGET npm ERR! notarget No matching version found f...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
08213
Vue的beforeRouteEnter如何使用组件实例的方法-明恒博客

Vue的beforeRouteEnter如何使用组件实例的方法

beforeRouteEnter如何使用组件实例的方法beforeRouteEnter(to, from, next) { this.axios() }对于这样的代码,会报错,因为此时组件实例不存在,没有this,就更没有挂载到上面的axios方法了。解...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
07911
nuxt3项目中使用element-plus的el-menu组件default-active无法正常激活菜单-明恒博客

nuxt3项目中使用element-plus的el-menu组件default-active无法正常激活菜单

根据官方的指引使用default-active绑定一个激活菜单的indexconst activeIndex = ref('-1');bug现象:变更这个值发现菜单无法激活activeIndex.value = '0';解决:nuxt是服务端渲染框架,使用clie...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
07411
Taro框架实现微信登录及获取手机号和用户信息-明恒博客

Taro框架实现微信登录及获取手机号和用户信息

import React , { useState } from 'react'; import { Button, Image, Toast } from '@taroify/core'; import Taro from '@tarojs/taro'; import wechatApi from '../api/wechat'; import WXBiz...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
11787
Nuxt3的useFetch、useAsyncData、useLazyFetch、useLazyAsyncData的区别-明恒博客

Nuxt3的useFetch、useAsyncData、useLazyFetch、useLazyAsyncData的区别

useFetch和useLazyFetchuseFetch的使用 useFetch('/baidu.php?url=zym88.cn&type=Sl_Number', { method: 'get', baseURL: 'https://www.zym88.cn', }).then(res => { console.log(res); ...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
112011
nuxt3引入element-plus的三种方法-明恒博客

nuxt3引入element-plus的三种方法

1、全部引入 安装element-plus依赖 npm install element-plus --save 在nuxt3项目中plugins下新建一个element-plus.client.ts文件(注意:默认必须在 plugins 下新建配置文件,这是“约定”,...
你的明明呐丶的头像-明恒博客你的明明呐丶1年前
01076
在React中使用 react-router-dom 编程式路由导航【含V5.x、V6.x】-明恒博客

在React中使用 react-router-dom 编程式路由导航【含V5.x、V6.x】

react-router-dom 编程式路由导航 (v5) 1.push跳转+携带params参数 props.history.push(`/b/child1/${id}/${title}`); 2.push跳转+携带search参数 props.history.push(`/b/child1?id=${id}&...
你的明明呐丶的头像-明恒博客你的明明呐丶2年前
0569
Centos7 安装|更新git-明恒博客

Centos7 安装|更新git

背景描述 CentOS7上的Git版本太陈旧,在使用过程中会遇到问题,因此需要升级git版本。 # git --version git version 1.8.3.1 # 系统版本:(CentOS 7.6) # cat /etc/redhat-release CentOS Lin...
你的明明呐丶的头像-明恒博客你的明明呐丶2年前
07415