Compare commits
4
Commits
6b3112b547
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c254506d97 | ||
|
|
f727099ef2 | ||
|
|
d22527adf8 | ||
|
|
18b6fb2af2 |
@@ -0,0 +1,22 @@
|
||||
name: ci-backstage-repair
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
name: Build (Node)
|
||||
runs-on: node16
|
||||
steps:
|
||||
- name: Checkout
|
||||
run: |
|
||||
git clone --depth 1 --branch "$GITHUB_REF_NAME" "https://oauth2:${{ secrets.GITHUB_TOKEN }}@gitlab.scdswj.cn/hzd/backstage-repair.git" . 2>&1 | tail -2
|
||||
git log --oneline -1
|
||||
- name: Install
|
||||
run: |
|
||||
npm config set registry https://registry.npmmirror.com
|
||||
npm install --no-audit --no-fund --legacy-peer-deps
|
||||
- name: Build
|
||||
run: |
|
||||
npm run build
|
||||
du -sh dist 2>/dev/null || true
|
||||
+4
-1
@@ -9,7 +9,10 @@ const errorCode = {
|
||||
default: "系统未知错误,请反馈给管理员",
|
||||
};
|
||||
|
||||
const url = "https://repair.cpolar.top"; // "https://hazard.cpolar.top";
|
||||
// const url = "https://repair.cpolar.top"; // 开发地址
|
||||
const url = "https://api.cqcxj.cn"; // 正式地址
|
||||
// const url = "https://cqjql.scdswj.cn:9443"; // 临时地址
|
||||
// const url = "https://repair-api.scdswj.cn"; // 测试环境地址
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: url,
|
||||
|
||||
Reference in New Issue
Block a user