Skip to content

Commit

Permalink
chore(cli): remove chinese character in cli src (labring#584)
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow authored Dec 26, 2022
1 parent 24f12c4 commit caabd27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "laf-cli",
"version": "1.0.0",
"version": "0.0.1",
"description": "",
"main": "dist/main.js",
"bin": {
Expand Down
8 changes: 4 additions & 4 deletions cli/src/apis/application.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { requestData } from "../utils/request"

/**
* 根据 appid 获取应用
* Get application by appid
* @param {string} appid
* @returns 返回应用数据
* @returns
*/
export async function getApplicationByAppid(appid: string) {
const res = await requestData({
Expand All @@ -14,8 +14,8 @@ import { requestData } from "../utils/request"
}

/**
* 获取应用列表
* @returns 返回应用数据
* Get the application list
* @returns
*/
export async function listApplication() {
const url = `/v1/applications`
Expand Down
4 changes: 1 addition & 3 deletions cli/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ request.interceptors.request.use(
return config
},
(error) => {
// 错误抛到业务代码
error.data = {}
error.data.msg = '服务器异常,请联系管理员!'
error.data.msg = 'The server is abnormal, please contact the administrator!'
return Promise.resolve(error)
},
)
Expand Down Expand Up @@ -76,7 +75,6 @@ request.interceptors.response.use(


/**
* 描述 axios request 请求
* @param {Object} obj
*/
export function requestData(obj: object) {
Expand Down

0 comments on commit caabd27

Please sign in to comment.