feat:去掉 pro.kuaitu.cc 商业版链接(模板页/编辑器页头部,含 proIcon);server refresh 响应补 popup 字段(公告弹窗:is_popup=1 新公告按 id 弹一次)
NodeJS with Webpack / build (push) Canceled after 0s
NodeJS with Webpack / build (push) Canceled after 0s
This commit is contained in:
1 parent
5518b275f1
commit
00c0b99077
3 files changed
+1
-9
No files matched your search
+1
-1
@@ -216,7 +216,7 @@ const server = http.createServer(async (req, res) => {
|
||||
}
|
||||
if (p === '/api/hub/refresh' && req.method === 'POST') {
|
||||
const [up, ann, beat] = await Promise.all([hubCheckUpdate(true), hubAnnouncements(true), hubHeartbeat(true)]);
|
||||
return send(res, 200, { ok: true, version: APP_VERSION, update: up, announcements: (ann && ann.list) || [], heartbeat: beat });
|
||||
return send(res, 200, { ok: true, version: APP_VERSION, update: up, announcements: (ann && ann.list) || [], popup: (ann && ann.popup) || [], heartbeat: beat });
|
||||
}
|
||||
|
||||
// ---------- API ----------
|
||||
|
||||
@@ -24,9 +24,6 @@
|
||||
<div class="right">
|
||||
<hubInfo></hubInfo>
|
||||
<Divider type="vertical" />
|
||||
<a href="https://pro.kuaitu.cc/" target="_blank" alt="商业版">
|
||||
<img width="15" :src="proIcon" alt="vue-fbric-editor" />
|
||||
</a>
|
||||
<!-- 管理员模式 -->
|
||||
<admin />
|
||||
<!-- 预览 -->
|
||||
@@ -40,7 +37,6 @@
|
||||
</template>
|
||||
|
||||
<script name="Top" setup lang="ts">
|
||||
import proIcon from '@/assets/icon/proIcon.png';
|
||||
// 导入元素
|
||||
import importJson from '@/components/importJSON.vue';
|
||||
import importFile from '@/components/importFile.vue';
|
||||
|
||||
@@ -22,9 +22,6 @@
|
||||
<Divider type="vertical" />
|
||||
<Button type="primary" to="/" size="smail" target="_blank">新建设计</Button>
|
||||
<Divider type="vertical" />
|
||||
<a href="https://pro.kuaitu.cc/" target="_blank">
|
||||
<img width="15" :src="proIcon" alt="vue-fbric-editor" />
|
||||
</a>
|
||||
<!-- 预览 -->
|
||||
<login></login>
|
||||
<lang></lang>
|
||||
@@ -93,7 +90,6 @@
|
||||
import { toRaw } from 'vue';
|
||||
import { Spin } from 'view-ui-plus';
|
||||
import qs from 'qs';
|
||||
import proIcon from '@/assets/icon/proIcon.png';
|
||||
|
||||
import { useRouter } from 'vue-router';
|
||||
const router = useRouter();
|
||||
|
||||
Reference in new issue
Block a user