logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

uni.request返回数据为array数组且第一个值为null

在uni-app里调用后端的某个数据时,使用uni.request来获取后端数据,但发现再将数据进行处理时报错说TypeError: Cannot read properties of undefined (reading 'result'),也就是数据为null。2. 不管第一个item[0] :null,直接调用后面需要用的那个item[1]。}] ,也就是它多了一个null。之后再在需要用到

#uni-app
vscode远程连接失败 Could not establish connection: The remote host does not meet the prerequisites

在确定不是SSH和服务器的问题后,问题大概率就是vscode或者这个插件了,最后发现是vscode新版本的问题。

#服务器#vscode
git clone-->Failed to connect to huggingface.co port 443 after 21299 ms: Could not connect to server

能够在浏览器里顺利打开huggingface.co ,但输入指令后出现了报错显示无法连接。这是由于网络需要通过代理(如Clash 等)访问外网,但终端未配置代理,会导致。clash的代理端口号可以在general页面里看,一般都是7890。

#git
uni.request返回数据为array数组且第一个值为null

在uni-app里调用后端的某个数据时,使用uni.request来获取后端数据,但发现再将数据进行处理时报错说TypeError: Cannot read properties of undefined (reading 'result'),也就是数据为null。2. 不管第一个item[0] :null,直接调用后面需要用的那个item[1]。}] ,也就是它多了一个null。之后再在需要用到

#uni-app
vscode远程连接失败 Could not establish connection: The remote host does not meet the prerequisites

在确定不是SSH和服务器的问题后,问题大概率就是vscode或者这个插件了,最后发现是vscode新版本的问题。

#服务器#vscode
到底了