vue-apps/com.actionsoft.apps.coe.pal/views/DevGetSession.vue
shangxiaoran@qq.com 9d8f9f0e92 初始化应用
2022-06-28 01:29:37 +08:00

42 lines
884 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 获取session方法不可删除 -->
<template>
<div class="devGetSession">
正在获取session
</div>
</template>
<script>
import router from "../router/index";
import awsuiAxios from "../awsuiAxios/index";
import store from "../store/index";
awsuiAxios
.post({
url: "jd",
data: {
userid: devUserInfo.userid,
pwd: devUserInfo.pwd,
lang: "cn",
cmd: "com.actionsoft.apps.getsession.get",
deviceType: "pc",
},
})
.then(function (r) {
// let r = response.data;
if (r.result == "error") {
//$.simpleAlert(r.msg, "error");
alert("获取session错误" + r.msg);
} else {
store.commit("edit", { sessionId: r.data.sid });
router.replace("/");
}
});
export default {
data() {
return {
dwList: [], //dw的获取列表
};
},
methods: {},
mounted() {},
};
</script>