From 998cf472fadccc389de0eca9ce225d78f8155334 Mon Sep 17 00:00:00 2001
From: ZhaoTongYao <531131322@qq.com>
Date: Tue, 23 Feb 2021 11:02:47 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B7=A5=E4=BD=9C=E6=97=A5?=
=?UTF-8?q?=E5=BF=97=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
public/index.html | 4 ++++
src/views/modules/worklog/worklog.vue | 30 +++++++++++++++++++++++++++
src/views/pages/login.vue | 10 +++++++++
3 files changed, 44 insertions(+)
create mode 100644 src/views/modules/worklog/worklog.vue
diff --git a/public/index.html b/public/index.html
index a40f5db..6da9f15 100644
--- a/public/index.html
+++ b/public/index.html
@@ -37,24 +37,28 @@
<% } %>
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
<% } %>
<% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %>
<% } %>
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
<% } %>
diff --git a/src/views/modules/worklog/worklog.vue b/src/views/modules/worklog/worklog.vue
new file mode 100644
index 0000000..4b17d8e
--- /dev/null
+++ b/src/views/modules/worklog/worklog.vue
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue
index 3dcb617..65362e8 100644
--- a/src/views/pages/login.vue
+++ b/src/views/pages/login.vue
@@ -151,6 +151,16 @@ export default {
// 登陆之后从localStorage获取党委为空则从网络上拉取
this.checkLocakStorage()
}).catch(() => { })
+ this.$http.get(`/api/plugins/workLog/getCustomId`)
+ .then(res => {
+ if (res.data.code !== 0) {
+ return this.$message.error(res.data.msg)
+ }
+ Cookies.set('customerId',res.data.data)
+ })
+ .catch((err) => {
+ console.log(err)
+ })
})
}, 1000, { 'leading': true, 'trailing': false }),
checkLocakStorage () {