前端优化

This commit is contained in:
qaiu
2023-07-31 05:08:13 +08:00
parent 7595345e7b
commit 1e77b20e44

View File

@@ -7,7 +7,7 @@
<el-avatar :size="150" :src="avatar"></el-avatar> <el-avatar :size="150" :src="avatar"></el-avatar>
</div> </div>
</div> </div>
<h1 style="text-align: center;">netdisk-fast-download网盘直链解析</h1> <h3 style="text-align: center;">netdisk-fast-download网盘直链解析</h3>
<div class="typo"> <div class="typo">
<p><strong>项目地址 </strong><a href="https://github.com/qaiu/netdisk-fast-download" target="_blank" <p><strong>项目地址 </strong><a href="https://github.com/qaiu/netdisk-fast-download" target="_blank"
rel="nofollow"><u>点我跳转</u></a></p> rel="nofollow"><u>点我跳转</u></a></p>
@@ -24,11 +24,11 @@
<el-button slot="append" @click="onSubmit">解析</el-button> <el-button slot="append" @click="onSubmit">解析</el-button>
</el-input> </el-input>
<el-input placeholder="请输入密码" v-model="password" id="url" lass="input-with-select"></el-input> <el-input placeholder="请输入密码" v-model="password" id="url" lass="input-with-select"></el-input>
<el-input placeholder="解析地址" v-value="link" id="url" lass="input-with-select"> <el-input placeholder="解析地址" :value="getLink" id="url" lass="input-with-select">
<el-button slot="append" v-clipboard:copy="getLink" <el-button slot="append" v-clipboard:copy="getLink"
v-clipboard:success="onCopy" v-clipboard:success="onCopy"
v-clipboard:error="onError">点我复制</el-button> v-clipboard:error="onError">点我复制</el-button>
</el-input> </el-input>
</div> </div>
<div v-show="respData" style="margin-top: 10px"> <div v-show="respData" style="margin-top: 10px">
<strong>解析结果: </strong> <strong>解析结果: </strong>
@@ -125,7 +125,7 @@ export default {
this.isLoading = true this.isLoading = true
this.downUrl = '' this.downUrl = ''
this.respData = '' this.respData = ''
this.getLink = `http://127.0.0.1:6400/json/parser?url=${this.link}` this.getLink = location.protocol + "//" + location.hostname + `:6400/json/parser?url=${this.link}`
if (this.password) { if (this.password) {
this.getLink += `&pwd=${this.password}` this.getLink += `&pwd=${this.password}`
} }