让企业管理更智慧、更快捷

Skip to content
代码片段 群组 项目
提交 935bccb6 编辑于 作者: 周建's avatar 周建
浏览文件

gitlab-ci修改

上级 0e337883
No related branches found
标签 1.0.0
无相关合并请求
流水线 #932 已通过
文件已添加
......@@ -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
......
......@@ -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;
......@@ -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.
先完成此消息的编辑!
想要评论请 注册