|
@@ -2,21 +2,62 @@
|
|
|
<div class="release-wrap">
|
|
<div class="release-wrap">
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<h1 class="title">版本发布</h1>
|
|
<h1 class="title">版本发布</h1>
|
|
|
- <p>最近更新:{{ billd.lastBuildDate }}</p>
|
|
|
|
|
- <p>提交哈希:{{ billd.commitHash }}</p>
|
|
|
|
|
|
|
+ <div class="hr"></div>
|
|
|
|
|
+ <div class="list">
|
|
|
|
|
+ <div class="item">
|
|
|
|
|
+ <h2>前端版本</h2>
|
|
|
|
|
+ <p>提交日期:{{ billd.committerDate }}</p>
|
|
|
|
|
+ <p>提交哈希:{{ billd.commitHash }}</p>
|
|
|
|
|
+ <p>最后构建:{{ billd.lastBuildDate }}</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="hr"></div>
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-loading="loading"
|
|
|
|
|
+ class="item"
|
|
|
|
|
+ >
|
|
|
|
|
+ <h2>后端版本</h2>
|
|
|
|
|
+ <p>提交日期:{{ serverInfo?.billd.committerDate }}</p>
|
|
|
|
|
+ <p>提交哈希:{{ serverInfo?.billd.commitHash }}</p>
|
|
|
|
|
+ <p>最后构建:{{ serverInfo?.billd.lastBuildDate }}</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="aside">
|
|
<div class="aside">
|
|
|
<div class="title">本页目录</div>
|
|
<div class="title">本页目录</div>
|
|
|
- <div class="item">TODO</div>
|
|
|
|
|
|
|
+ <div class="item">前端版本</div>
|
|
|
|
|
+ <div class="item">后端版本</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { BilldHtmlWebpackPluginLog } from '@/interface';
|
|
|
|
|
|
|
+import { onMounted, ref } from 'vue';
|
|
|
|
|
|
|
|
|
|
+import { fetchServerInfo } from '@/api/other';
|
|
|
|
|
+import { BilldHtmlWebpackPluginLog, IServerInfo } from '@/interface';
|
|
|
// @ts-ignore
|
|
// @ts-ignore
|
|
|
const billd: BilldHtmlWebpackPluginLog = process.env.BilldHtmlWebpackPlugin;
|
|
const billd: BilldHtmlWebpackPluginLog = process.env.BilldHtmlWebpackPlugin;
|
|
|
|
|
+
|
|
|
|
|
+const serverInfo = ref<IServerInfo>();
|
|
|
|
|
+const loading = ref(false);
|
|
|
|
|
+
|
|
|
|
|
+async function handleFetchServerInfo() {
|
|
|
|
|
+ try {
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+ const res = await fetchServerInfo();
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ serverInfo.value = res.data;
|
|
|
|
|
+ }
|
|
|
|
|
+ } catch (error) {
|
|
|
|
|
+ console.log(error);
|
|
|
|
|
+ } finally {
|
|
|
|
|
+ loading.value = false;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+onMounted(() => {
|
|
|
|
|
+ handleFetchServerInfo();
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
@@ -42,7 +83,17 @@ const billd: BilldHtmlWebpackPluginLog = process.env.BilldHtmlWebpackPlugin;
|
|
|
height: 1px;
|
|
height: 1px;
|
|
|
background-color: #e7e7e7;
|
|
background-color: #e7e7e7;
|
|
|
}
|
|
}
|
|
|
|
|
+ .list {
|
|
|
|
|
+ h2 {
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ }
|
|
|
|
|
+ .item {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ font-size: 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.aside {
|
|
.aside {
|
|
|
padding-left: 90px;
|
|
padding-left: 90px;
|
|
|
.title {
|
|
.title {
|
|
@@ -56,6 +107,9 @@ const billd: BilldHtmlWebpackPluginLog = process.env.BilldHtmlWebpackPlugin;
|
|
|
color: rgba(60, 60, 60, 0.7);
|
|
color: rgba(60, 60, 60, 0.7);
|
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
|
+ &:hover {
|
|
|
|
|
+ color: #213547;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|