|
@@ -124,11 +124,11 @@
|
|
|
<slot name="content"></slot>
|
|
|
</Layout>
|
|
|
<Modal v-model="updateModal" :title="'更新内容 v' + version" width="600" footer-hide>
|
|
|
- <Carousel v-model="updateIndex" loop style="width: 560px;height: 448px">
|
|
|
- <CarouselItem v-for="(item,index) in updateImgArr" :key="index">
|
|
|
+ <Carousel v-model="updateIndex" loop style="width: 560px; height: 448px">
|
|
|
+ <CarouselItem v-for="(item, index) in updateImgArr" :key="index">
|
|
|
<div class="demo-carousel">
|
|
|
- <img :src="item" alt="" style="width: 560px;height: 448px">
|
|
|
- </div>
|
|
|
+ <img :src="item" alt="" style="width: 560px; height: 448px" />
|
|
|
+ </div>
|
|
|
</CarouselItem>
|
|
|
</Carousel>
|
|
|
</Modal>
|
|
@@ -140,14 +140,9 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- version:'',
|
|
|
- updateImgArr:[
|
|
|
- 'https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0001.png',
|
|
|
- 'https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0002.png',
|
|
|
- 'https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0003.png',
|
|
|
- 'https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0004.png',
|
|
|
- ],
|
|
|
- updateIndex:0,
|
|
|
+ version: "",
|
|
|
+ updateImgArr: ["https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0001.png", "https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0002.png", "https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0003.png", "https://teammodeltest.blob.core.chinacloudapi.cn/download/version/0004.png"],
|
|
|
+ updateIndex: 0,
|
|
|
edition: "",
|
|
|
updateModal: false,
|
|
|
isPro: false, // 是否为专业版
|
|
@@ -187,13 +182,13 @@
|
|
|
if (res.version) {
|
|
|
console.error("最新版本", res.version);
|
|
|
let oldVersion = localStorage.version || "";
|
|
|
- let isTestSite = window.location.host.includes('test.teammodel');
|
|
|
- this.$EventBus.$emit('versionUpdate', res.version)
|
|
|
+ let isTestSite = window.location.host.includes("test.teammodel.cn");
|
|
|
+ this.$EventBus.$emit("versionUpdate", res.version);
|
|
|
if (oldVersion !== res.version && isTestSite) {
|
|
|
this.$Notice.warning({
|
|
|
title: "版本更新通知(20s后自动关闭)",
|
|
|
duration: 20,
|
|
|
- name:'update',
|
|
|
+ name: "update",
|
|
|
render: (h) => {
|
|
|
return h("span", [
|
|
|
`当前云平台版本已更新到 ${res.version}`,
|
|
@@ -217,7 +212,7 @@
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- this.version = res.version;
|
|
|
+ this.version = res.version;
|
|
|
localStorage.setItem("version", res.version);
|
|
|
}
|
|
|
});
|
|
@@ -225,7 +220,7 @@
|
|
|
methods: {
|
|
|
showUpdateDetails() {
|
|
|
this.updateModal = true;
|
|
|
- this.$Notice.close('update')
|
|
|
+ this.$Notice.close("update");
|
|
|
},
|
|
|
mouseOver() {
|
|
|
if (!this.isLock) this.isCollapsed = false;
|