From f1c9d848b23e6726a4ca5f7d65985016bb397245 Mon Sep 17 00:00:00 2001
From: LQS <2506203757@qq.com>
Date: Fri, 9 Aug 2024 17:28:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/user.js | 8 ++++----
src/views/pay/customer/index.vue | 17 +++++++++++++++++
vue.config.js | 2 +-
3 files changed, 22 insertions(+), 5 deletions(-)
create mode 100644 src/views/pay/customer/index.vue
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 6c109a6..2f54098 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -45,10 +45,10 @@ const user = {
return new Promise((resolve, reject) => {
login(username, password, code, uuid).then(res => {
let data = res.data
- setToken(data.access_token)
- commit('SET_TOKEN', data.access_token)
- setExpiresIn(data.expires_in)
- commit('SET_EXPIRES_IN', data.expires_in)
+ setToken(data.accessToken)
+ commit('SET_TOKEN', data.accessToken)
+ setExpiresIn(data.expiresIn)
+ commit('SET_EXPIRES_IN', data.expiresIn)
resolve()
}).catch(error => {
reject(error)
diff --git a/src/views/pay/customer/index.vue b/src/views/pay/customer/index.vue
new file mode 100644
index 0000000..944d0bf
--- /dev/null
+++ b/src/views/pay/customer/index.vue
@@ -0,0 +1,17 @@
+
+
+
+
+
+ customer 页面
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index dd8b15d..a71b080 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,7 @@ module.exports = {
proxy: {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
- target: `http://localhost:8080`,
+ target: `http://47.103.41.248/prod-api`,
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''