让企业管理更智慧、更快捷
Skip to content
GitLab
探索
登录
注册
主导航
搜索或转到…
项目
H
Http
管理
动态
成员
标记
计划
议题
议题看板
里程碑
Wiki
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
构建
流水线
作业
流水线计划
产物
部署
发布
Package registry
模型注册表
运维
环境
Terraform 模块
监控
事件
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为 GitLab 提交贡献
提交反馈
快捷键
?
代码片段
群组
项目
显示更多面包屑
package
Http
提交
935bccb6
提交
935bccb6
编辑于
7 months ago
作者:
周建
浏览文件
操作
下载
补丁
差异文件
gitlab-ci修改
上级
0e337883
No related branches found
分支 包含提交
标签
1.0.0
标签 包含提交
无相关合并请求
流水线
#932
已通过
7 months ago
阶段:package
变更
4
流水线
1
隐藏空白变更内容
行内
左右并排
显示
4 个更改的文件
.DS_Store
+0
-0
0 个添加, 0 个删除
.DS_Store
.gitlab-ci.yml
+1
-1
1 个添加, 1 个删除
.gitlab-ci.yml
dist/index.d.ts
+1
-1
1 个添加, 1 个删除
dist/index.d.ts
dist/index.js
+1
-6
1 个添加, 6 个删除
dist/index.js
有
3 个添加
和
8 个删除
.DS_Store
0 → 100644
+
0
−
0
浏览文件 @
935bccb6
文件已添加
此差异已折叠。
点击以展开。
.gitlab-ci.yml
+
1
−
1
浏览文件 @
935bccb6
...
...
@@ -22,7 +22,7 @@ job:npm-publish:
-
echo "job:deploy start..."
-
export GIT_TAG=$(git describe --tags)
# 获取最新git tag版本,作为发布package version
-
echo $GIT_TAG
-
npm run
dist
-
npm run
build
-
rm .npmrc
-
|
if [[ ! -f .npmrc ]]; then
...
...
此差异已折叠。
点击以展开。
dist/index.d.ts
+
1
−
1
浏览文件 @
935bccb6
...
...
@@ -163,5 +163,5 @@ declare class Http {
*/
preview
(
contextPath
:
string
,
path
:
string
,
params
?:
Record
<
string
,
string
>
|
undefined
):
Promise
<
string
>
;
}
export
declare
const
http
:
Http
;
export
type
{
RequestOptions
,
P
,
R
};
export
declare
const
http
:
Http
;
此差异已折叠。
点击以展开。
dist/index.js
+
1
−
6
浏览文件 @
935bccb6
...
...
@@ -136,7 +136,7 @@ class Http {
// 检查响应内容类型
const
contentType
=
response
.
headers
.
get
(
'
content-type
'
);
if
(
contentType
&&
contentType
.
includes
(
'
text/html
'
))
{
//
��
果是HTML响应,在新窗口打开
//
如
果是HTML响应,在新窗口打开
window
.
open
(
response
.
url
,
'
_blank
'
);
return
{};
}
...
...
@@ -332,8 +332,3 @@ class Http {
}
}
exports
.
http
=
Http
.
getInstance
();
// 将 http 对象暴露到全局
if
(
typeof
window
!==
'
undefined
'
)
{
window
.
http
=
exports
.
http
;
}
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录