Commit 95b85ef1 by LJM

bug

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