团队的代码托管管理平台之前一直用Gitee的企业版本,但除了代码pull/push操作外,基本不用平台上其它功能,除了要新建一个仓库要打开下网页版,其它时间基本不会访问网页版本,所以经过半天的调研,从GitLab/Gogs/Gitea中选择了Gitea,把迁移过程记录如下。
JS笔记
js中要用变量作为key的话使用方括号括住
例:this.searchKeyword
1
2
3
4
5
6this.$http({
url: this.searchUrl,
method: this.remoteRequestMethod,
params: Object.assign({}, this.searchParams, this.pager),
data: Object.assign({ [this.searchKeyword]: query }, this.searchBody, this.pager)
})