Commit e1cb0c68 authored by 张伯涛's avatar 张伯涛

ar报错提示

parent a5a74a5b
......@@ -31,6 +31,7 @@
</template>
<script>
import ARWebControl from "./arWebControl.debug";
import {ElMessage} from "element-plus";
// 该接口为vlmas组件ui接口,如果是在copas中调用,可以使用vlmas wiki中提供的api接口,如果是组件中使用,需要对应组件参照wiki提供相应接口
import { getLoginTgc } from "@/api/ar";
import { useRoute } from 'vue-router'
......@@ -152,12 +153,18 @@ export default {
// 超时
window.addEventListener("ar_websocket_link_time_out", event => {
this.connectError = event.detail.flag;
ElMessage.error({
message: '连接失败! 可尝试关闭窗口重新进入!'
});
});
// 登录失败
window.addEventListener("ar_login_failure", event => {
this.loginFailure = true;
this.connectError = true;
this.loginFailedText = event.detail || "登录失败!";
ElMessage.error({
message: '连接失败! 可尝试关闭窗口重新进入!'
});
});
// 启动
......
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 to comment