This commit is contained in:
acgist
2023-02-08 21:31:09 +08:00
parent 7889d4f708
commit 50f80bee2d
164 changed files with 2023 additions and 1457 deletions

View File

@@ -1,11 +1,39 @@
<script setup>
<template></template>
<script>
import { Logger } from "./components/Logger.js";
import { Taoyao } from "./components/Taoyao.js";
export default {
name: "taoyao",
data() {
return {
logger: null,
taoyao: null,
};
},
mounted() {
// 填写、密码、帐号
this.logger = new Logger();
this.taoyao = new Taoyao();
this.logger.info("桃夭终端启动");
this.taoyao.buildChannel(this.callback);
},
beforeDestroy() {},
methods: {
/**
* 信令回调
*
* @param {*} data 消息
*
* @return 是否继续执行
*/
callback: function (data) {
let self = this;
switch (data.header.snail) {
}
return false;
},
},
};
</script>
<template>
<header></header>
<main></main>
<footer></footer>
</template>
<style scoped>
</style>