diff --git a/.env.development b/.env.development index e4f9680..f15a303 100644 --- a/.env.development +++ b/.env.development @@ -2,6 +2,6 @@ ENV = 'development' # base api -#VUE_APP_BASE_API = 'http://safety.115.langye.net/' +VUE_APP_BASE_API = 'http://safety.115.langye.net/' -VUE_APP_BASE_API = http://192.168.60.99:9001/ +#VUE_APP_BASE_API = http://192.168.60.99:9001/ diff --git a/.env.production b/.env.production index c706107..5b359d5 100644 --- a/.env.production +++ b/.env.production @@ -4,3 +4,4 @@ ENV = 'production' # base api VUE_APP_BASE_API = http://192.168.60.99:9001/ +#VUE_APP_BASE_API = 'http://safety.115.langye.net/' \ No newline at end of file diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 383c7d7..cd1458b 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -48,17 +48,19 @@ const actions = { }, userInfo) { const { token, - tp + tp, + loginId } = userInfo return new Promise((resolve, reject) => { loginOss({ token: token, - tp: tp + tp: tp, + loginId: loginId }).then(response => { //console.log(response) - + const { data } = response; diff --git a/src/views/daily/deptindex.vue b/src/views/daily/deptindex.vue index 7c39a17..1f934a0 100644 --- a/src/views/daily/deptindex.vue +++ b/src/views/daily/deptindex.vue @@ -28,7 +28,7 @@
- @@ -82,11 +82,12 @@
@@ -300,6 +301,9 @@ edit(obj, isnew) { this.form = this.$options.data().form; this.clientHeight = document.documentElement.clientHeight - 84 - 110; + this.$nextTick(function(){ + this.$refs.tinymce.setContent(""); + }) if (isnew) { var that = this; that.form.content = ""; @@ -321,14 +325,15 @@ if (valid) { if (status == "2") { that.form.status = status; - submitsave(that.form).then(response => { + save(that.form).then(response => { //console.log(response) - this.$Message.success('操作成功'); - that.load(); - that.dialogFormVisible = false; + this.$Message.success('操作成功'); + that.load(); + that.dialogFormVisible = false; }).catch(error => { //reject(error) }) + } else { save(that.form).then(response => { //console.log(response) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 7f6b26c..f7551bf 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -93,7 +93,8 @@ this.loading = true this.$store.dispatch('user/loginskip', { token: query.token, - tp: query.tp + tp: query.tp, + loginId: query.loginId }).then(() => { this.$router.push({ path: "/"