modify openid length

This commit is contained in:
RainSun 2020-04-11 12:29:22 +08:00
parent 52ed5e8d13
commit 0db3ba2dfc
3 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import axios from 'axios'
export const api = axios.create({
// baseURL: 'https://yg.canary.moe/v1/admin/',
// baseURL: 'https://tracer.lacus.site/v1/admin/',
baseURL: window.location.origin + '/v1/admin/',
headers: {
'Content-Type': 'application/json',

View File

@ -18,7 +18,7 @@
></md-progress-bar>
<md-field style="margin-top: 30px;">
<label>失物招领id</label>
<md-input v-model="id" placeholder="输入在地址栏找到的失物招领id" type="number" maxlength="17"></md-input>
<md-input v-model="id" placeholder="输入在地址栏找到的失物招领id" type="number" maxlength="16"></md-input>
</md-field>
<md-speed-dial class="md-bottom-right" style="margin-bottom: 60px;">
<md-speed-dial-target class="md-primary" @click="clear" v-if="!loading_switch">
@ -99,7 +99,7 @@ export default {
}
this.id = this.id.trim();
//
if (!/\d{17}/.test(this.id)) {
if (!/\d{16}/.test(this.id)) {
console.log("数据格式校验失败");
this.message("请输入正确的id");
return;

View File

@ -32,7 +32,7 @@
<md-card v-if="verify_content" class="md-card-example">
<md-card-area md-inset>
<md-card-media>
<img :src="`https://yg.canary.moe/photo/${verify_content.img_url}`" />
<img :src="`https://tracer.lacus.site/photo/${verify_content.img_url}`" />
</md-card-media>
<md-card-header>