From 5775109c822f6b44d0600f01645407161415845c Mon Sep 17 00:00:00 2001
From: ZhaoTongYao <531131322@qq.com>
Date: Fri, 5 Feb 2021 10:57: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 +++++++++
vue.config.js | 1 +
4 files changed, 43 insertions(+), 2 deletions(-)
create mode 100644 src/views/modules/worklog/worklog.vue
diff --git a/public/index.html b/public/index.html
index 0b4ca59..f16d66a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -36,8 +36,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<% } %>
diff --git a/src/views/modules/worklog/worklog.vue b/src/views/modules/worklog/worklog.vue
new file mode 100644
index 0000000..3710175
--- /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 8e838c0..9eb355c 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 () {
diff --git a/vue.config.js b/vue.config.js
index e24674f..d3a31f9 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -9,6 +9,7 @@ module.exports = {
devServer: {
open: true,
port: 8001,
+ public: '192.168.51.32',
overlay: {
errors: false,
warnings: false