From 2a1e290d1249e0206396b7055a31431276994c0f Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 9 Oct 2020 11:33:49 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=BC=95?= =?UTF-8?q?=E5=85=A5=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/import-png.d.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/import-png.d.ts diff --git a/src/import-png.d.ts b/src/import-png.d.ts new file mode 100644 index 0000000..3f66205 --- /dev/null +++ b/src/import-png.d.ts @@ -0,0 +1,4 @@ +declare module "*.png" { + const value: any; + export default value; +} \ No newline at end of file From e9a37efe02f6f9eeab0cad0a5b0390c576ce941a Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 9 Oct 2020 14:31:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 6 +++++- src/config/axiosConfig.ts | 2 +- src/views/login/Login.vue | 23 +++++++++++++++++++---- vue.config.js | 4 ++++ 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index b8ea3bf..52452f7 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -7,10 +7,14 @@ import { AxiosPromise } from 'axios' * @param type 类型 0国内 1国外 */ -export function sendsms(phone: string, type?: number): Promise{ +export function sendsms(phone: string, type?: number): Promise{ return post('SendSms',{phone, type}) } +export function loginpass(phone: string, password: string): Promise{ + return post("login",{type: 2,username: phone, password: password}) +} + // 下面是示例接口 可以删除 diff --git a/src/config/axiosConfig.ts b/src/config/axiosConfig.ts index 1bbf07a..256b7ad 100644 --- a/src/config/axiosConfig.ts +++ b/src/config/axiosConfig.ts @@ -1,5 +1,5 @@ import axios from 'axios' -axios.defaults.baseURL = 'http://beelink.com/home/'; +axios.defaults.baseURL = '/beelink/public/home/'; axios.defaults.headers.common['Authorization'] = 'token'; axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; diff --git a/src/views/login/Login.vue b/src/views/login/Login.vue index d638bd4..0a78ce1 100644 --- a/src/views/login/Login.vue +++ b/src/views/login/Login.vue @@ -48,6 +48,7 @@ @@ -58,11 +59,12 @@ placeholder="请输入您的密码" type="password" class="shuru" + v-model:value="userinfo.password" />
忘记密码?
-
立即登录
+
立即登录
@@ -144,10 +146,10 @@