Commit 95b85ef1 by LJM

bug

parent 5ffe1914
...@@ -307,7 +307,6 @@ export default { ...@@ -307,7 +307,6 @@ export default {
closetab(path) { closetab(path) {
let tab_arr = JSON.parse(sessionStorage.getItem('tabs')) let tab_arr = JSON.parse(sessionStorage.getItem('tabs'))
for (var i = 0; i < tab_arr.length; i++) { for (var i = 0; i < tab_arr.length; i++) {
if (tab_arr[i].path == path) { if (tab_arr[i].path == path) {
tab_arr.splice(i, 1); tab_arr.splice(i, 1);
sessionStorage.setItem('tabs', JSON.stringify(tab_arr)); sessionStorage.setItem('tabs', JSON.stringify(tab_arr));
...@@ -507,6 +506,7 @@ export default { ...@@ -507,6 +506,7 @@ export default {
&.first { &.first {
background-color: transparent; background-color: transparent;
&::after { &::after {
display: none; display: none;
} }
......
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
}, },
//取消发货 //取消发货
cancelSend() { cancelSend() {
var self = this;
if (this.multipleSelection.length <= 0) { if (this.multipleSelection.length <= 0) {
this.$message({ this.$message({
message: "请勾选数据进行操作", message: "请勾选数据进行操作",
...@@ -148,7 +149,7 @@ export default { ...@@ -148,7 +149,7 @@ export default {
type: 'success', type: 'success',
duration: 2000, duration: 2000,
onClose() { onClose() {
this.getData(); self.getData();
} }
}); });
} else { } else {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</a> </a>
</div> </div>
<p class="text"> <p class="text">
<span class="error">{{errror_text}}</span> <span class="error">{{ errror_text }}</span>
<a href="javascript:;" style="visibility:hidden;">忘记密码</a> <a href="javascript:;" style="visibility:hidden;">忘记密码</a>
</p> </p>
<a href="javascript:;" class="btn-submit" :class="active ? 'active':''" @click="submit()" :loading="true">登录</a> <a href="javascript:;" class="btn-submit" :class="active ? 'active':''" @click="submit()" :loading="true">登录</a>
...@@ -51,11 +51,12 @@ ...@@ -51,11 +51,12 @@
</div> </div>
</template> </template>
<script> <script>
import Vue from 'vue'; import Vue from 'vue';
import {Loading, Message} from 'element-ui'; import {Loading, Message} from 'element-ui';
import Util from "../../tool"; import Util from "../../tool";
Vue.prototype.$message=Message
export default { Vue.prototype.$message = Message
export default {
name: "index", name: "index",
data() { data() {
return { return {
...@@ -159,6 +160,7 @@ Vue.prototype.$message=Message ...@@ -159,6 +160,7 @@ Vue.prototype.$message=Message
}).then(res => { }).then(res => {
loadingInstance.close(); loadingInstance.close();
if (res.code === 0) { if (res.code === 0) {
sessionStorage.removeItem('tabs');
Util.setCookie("token", res.data.api_token, 1); Util.setCookie("token", res.data.api_token, 1);
//强制要求微信绑定 //强制要求微信绑定
if (!res.data.is_bind_wechat) { if (!res.data.is_bind_wechat) {
...@@ -195,8 +197,8 @@ Vue.prototype.$message=Message ...@@ -195,8 +197,8 @@ Vue.prototype.$message=Message
} }
} }
}; };
</script> </script>
<style scoped> <style scoped>
@import "../../assets/css/login/index.min.css"; @import "../../assets/css/login/index.min.css";
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment