2023-12-01版本
This commit is contained in:
parent
51bde198f1
commit
7684b29629
|
@ -95,11 +95,11 @@ export default {
|
||||||
if (!this.textarea) {
|
if (!this.textarea) {
|
||||||
this.$message({ type: 'warning', message: "请输入内容" })
|
this.$message({ type: 'warning', message: "请输入内容" })
|
||||||
} else {
|
} else {
|
||||||
axiosInstance.get("/interceptor")
|
|
||||||
this.getDate()
|
this.getDate()
|
||||||
let SendMessage = {
|
let SendMessage = {
|
||||||
nickname: this.myName,
|
nickname: this.myName,
|
||||||
pic: "1",
|
pic: this.myPic,
|
||||||
sendTime: this.dateNow,
|
sendTime: this.dateNow,
|
||||||
message: this.textarea,
|
message: this.textarea,
|
||||||
}
|
}
|
||||||
|
@ -117,12 +117,18 @@ export default {
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
const that = this
|
const that = this
|
||||||
axiosInstance.get("/interceptor")
|
axiosInstance.post("/getHead", {
|
||||||
|
account: localStorage.getItem("account"),
|
||||||
|
}).then(function (response) {
|
||||||
|
that.myPic = response.data.pic;
|
||||||
|
that.myName = response.data.username;
|
||||||
|
localStorage.setItem("nickname", response.data.username);
|
||||||
|
});
|
||||||
if (typeof (WebSocket) === undefined) {
|
if (typeof (WebSocket) === undefined) {
|
||||||
console.log("您的浏览器不支持WebSocket");
|
console.log("您的浏览器不支持WebSocket");
|
||||||
} else {
|
} else {
|
||||||
console.log("您的浏览器支持WebSocket");
|
console.log("您的浏览器支持WebSocket");
|
||||||
let socketUrl = "ws://localhost:8887/chat/get";
|
let socketUrl = "ws://119.29.254.99:8887/chat/get";
|
||||||
if (socket != null) {
|
if (socket != null) {
|
||||||
socket.close();
|
socket.close();
|
||||||
socket = null;
|
socket = null;
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<h2 class="versionText">ChatABC Windows版 1.1.1</h2>
|
<h2 class="versionText">ChatABC Windows版 1.1.1</h2>
|
||||||
<p class="time">发布时间: 2023年11月17号</p>
|
<p class="time">发布时间: 2023年11月17号</p>
|
||||||
<img :src=headPic class="img">
|
<img src="http://www.oss.coollh.cn/dog.jpg" class="img">
|
||||||
<br>
|
<br>
|
||||||
<el-button type="primary" round class="button" @click="download">立即下载</el-button>
|
<el-button type="primary" round class="button" @click="download">立即下载</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<h2 class="versionText">ChatABC Linux版 1.1.1</h2>
|
<h2 class="versionText">ChatABC Linux版 1.1.1</h2>
|
||||||
<p class="time">发布时间: 2023年11月17号</p>
|
<p class="time">发布时间: 2023年11月17号</p>
|
||||||
<img :src=headPic class="img">
|
<img src="http://www.oss.coollh.cn/pig.jpg" class="img">
|
||||||
<el-button type="primary" class="button" @click="download" round>立即下载</el-button>
|
<el-button type="primary" class="button" @click="download" round>立即下载</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue