logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

gitlab 拉取pull代码报错:update_ref failed for ref ‘ORIG_HEAD‘: cannot lock ref ‘ORIG_HEAD‘

在使用gitlab拉取代码时候,提示如下报错信息:update_ref failed for ref 'ORIG_HEAD': cannot lock ref 'ORIG_HEAD': unable to resolve reference 'ORIG_HEAD': reference broken

文章图片
#gitlab
git push解决办法: ! [remote rejected] master -> master (pre-receive hook declined)

前提: 新版的gitlab,旧版的可以搜索其他人的博客查看解决方案(或许解决方案一样,有待验证)新建git项目后,执行如下指令报错原因以及解决方案执行git remote add origin ‘xxx’报错:fatal: remote origin already exists.解决: 需要先删除远程 Git 仓库 git remote rm origin,再添加git remote add o

#git
unity 一个C#类访问另一个C#类中的属性或方法

在开发Unity 3D 游戏的过程中,经常会遇到在某个C#类中访问另一个C#类中的方法或属性这样的问题;一:实现调用方法有3种:1. 被调用脚本函数为static类型,调用时直接用脚本名.函数名()2. GameObject.Find(“脚本所在的物体的名字”).SendMessage(“函数名”); //能调用public和private类型函数3. GameObject.Find(“脚本所在的

#unity#c#
gitlab克隆报错 remote: The project you were looking for could not be found or you don‘t have permission

执行命令:git clone https://gitlab.com/xxx/xxx.git报错信息:remote: The project you were looking for could not be found or you don’t have permissionfatal: repository ‘https://gitlab.com/xxx/xxx.git/’ not found或

文章图片
#gitlab
vue3+vite :src 用require 动态导入图片报错和解决方法

vue3 动态的导入图片vue3 如果使用的是typescript开发,就会出现require引入图片报错,require is notdefined 不能像使用vue2这样imgUrl: require(’…/assets/test.png’) 导入,是因为typescript不支持require所以用import导入,下面介绍如何解决: 使用await import(’@/assets/img

vue+jsplumb 实现根据数据渲染出连线绘图

vue+jsplumb 实现根据数据渲染出连线绘图vue+jsplumb 实现连线绘图vue3.x 使用jsplumb进行拖拽连线jsplumb 点击节点或者连线高亮显示

#vue.js#前端#javascript
vue中元素嵌套iframe后绑在父元素上的点击事件失效

vue中元素嵌套iframe后绑在元素上的点击事件失效点击事件和拖拽事件冲突使用 focus-outside 库解决iframe和父组件之间的通信问题

three.js 导入显示模型的时候自动计算模型缩放比例

three.js导入显示模型的时候自动计算模型缩放比例,.stl模型加金属材质

vue3 axios统一添加响应拦截器

vue3 axios统一添加响应拦截器,针对接口返回值判断,如果返回未登录信息,直接跳转到登录页。在main.ts或main.js里加入代码。

#前端#javascript#html
vue for循环中按顺序执行axios请求

**vue for循环中按顺序执行axios请求**需求:前端利用for循环遍历一个接口获取信息,利用promise可以保证每次接口遍历正常后统一保存返回的数据

#vue.js#javascript
    共 13 条
  • 1
  • 2
  • 请选择