Skip to content

Commit

Permalink
Merge branch 'upstream'
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongfly committed Mar 6, 2022
2 parents 37933d9 + 68b9b92 commit e60e0bb
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 485 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [10.x]
node-version: [12.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"babel-plugin-import": "^1.13.3",
"eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.13.0",
"sass": "^1.43.4",
"sass-loader": "^8.0.0",
"svg-sprite-loader": "^4.2.1",
"vue-particles": "^1.0.9",
Expand Down
8 changes: 5 additions & 3 deletions src/views/Subconverter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@
<el-row :gutter="10">
<el-col :span="12"><el-checkbox v-model="form.udp" @change="needUdp = true" label="启用 UDP"></el-checkbox></el-col>
<el-col :span="12"><el-checkbox v-model="form.tfo" label="启用 TFO"></el-checkbox></el-col>
<el-row>
<el-checkbox v-model="form.scv" label="跳过证书验证"></el-checkbox>
</el-row>
<el-row :gutter="10">
<el-col :span="12"><el-checkbox v-model="form.appendType" label="插入节点类型"></el-checkbox></el-col>
Expand Down Expand Up @@ -738,18 +740,18 @@ export default {
}
})
.then(res => {
if (res.data.Code === 1 && res.data.url !== "") {
if (res.data.code === 0 && res.data.data.url !== "") {
this.$message.success(
"远程配置上传成功,配置链接已复制到剪贴板,有效期三个月望知悉"
);
// 自动填充至『表单-远程配置』
this.form.remoteConfig = res.data.Url;
this.form.remoteConfig = res.data.data.url;
this.$copyText(this.form.remoteConfig);
this.dialogUploadConfigVisible = false;
} else {
this.$message.error("远程配置上传失败" + res.data.Message);
this.$message.error("远程配置上传失败: " + res.data.msg);
}
})
.catch(() => {
Expand Down
Loading

0 comments on commit e60e0bb

Please sign in to comment.