zhuf 7 月之前
父節點
當前提交
fea0aa6b75
共有 3 個文件被更改,包括 12 次插入5 次删除
  1. 1 1
      .vscode/settings.json
  2. 0 2
      components.d.ts
  3. 11 2
      src/components/TheHeader.vue

+ 1 - 1
.vscode/settings.json

@@ -2,7 +2,7 @@
   "cSpell.words": ["Vitesse"],
   "prettier.enable": false,
   "editor.codeActionsOnSave": {
-    "source.fixAll.eslint": true
+    "source.fixAll.eslint": "explicit"
   },
   "files.associations": {
     "*.css": "postcss"

+ 0 - 2
components.d.ts

@@ -11,8 +11,6 @@ declare module '@vue/runtime-core' {
   export interface GlobalComponents {
     CheckRow: typeof import('./src/components/CheckRow/index.vue')['default']
     ElAlert: typeof import('element-plus/es')['ElAlert']
-    ElCarousel: typeof import('element-plus/es')['ElCarousel']
-    ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
     ElDropdown: typeof import('element-plus/es')['ElDropdown']
     ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
     ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']

+ 11 - 2
src/components/TheHeader.vue

@@ -33,6 +33,9 @@ function browserOpen(path: string, flag?: boolean) {
     router.push(path)
 }
 // @click="browserOpen(`https://openapi.bozedu.net/login.html?token=${user.token}`)"
+function openBlank(path: string) {
+  window.open(path, '_blank')
+}
 </script>
 
 <template>
@@ -86,7 +89,13 @@ function browserOpen(path: string, flag?: boolean) {
   <div class="flex justify-center bg-hex-f4f4f5">
     <el-alert type="info" show-icon :closable="false" class="w-1200px">
       <template #title>
-        <el-carousel indicator-position="none" arrow="never" height="20px" class="w-1200px" autoplay>
+        <div class="space-x-36">
+          <el-link
+            @click='openBlank("https://ossdownload.bozedu.net/data/ycxckt/%E5%85%B3%E4%BA%8E%E5%BC%80%E5%B1%952023%E5%B9%B4%E5%85%A8%E5%B8%82%E5%9C%A8%E7%BA%BF%E6%95%99%E8%82%B2%E6%89%B6%E6%99%BA%E8%AF%BE%E5%A0%82%EF%BC%88%E7%AC%AC%E4%B8%80%E6%9C%9F%EF%BC%89%E6%B4%BB%E5%8A%A8%E7%9A%84%E9%80%9A%E7%9F%A5.pdf")'>关于开展2023年全市在线教育扶智课堂(第一期)活动的通知</el-link>
+          <el-link
+            @click='openBlank("https://ossdownload.bozedu.net/data/ycxckt/%E5%85%B3%E4%BA%8E%E5%BC%80%E5%B1%952023%E5%B9%B4%E5%85%A8%E5%B8%82%E5%9C%A8%E7%BA%BF%E6%95%99%E8%82%B2%E6%89%B6%E6%99%BA%E8%AF%BE%E5%A0%82%EF%BC%88%E7%AC%AC%E4%BA%8C%E6%9C%9F%EF%BC%89%E6%B4%BB%E5%8A%A8%E7%9A%84%E9%80%9A%E7%9F%A5.pdf")'>关于开展2023年全市在线教育扶智课堂(第二期)活动的通知</el-link>
+        </div>
+        <!-- <el-carousel indicator-position="none" arrow="never" height="20px" class="w-1200px" autoplay>
           <el-carousel-item>
             <el-link
               href="https://ossdownload.bozedu.net/data/ycxckt/%E5%85%B3%E4%BA%8E%E5%BC%80%E5%B1%952023%E5%B9%B4%E5%85%A8%E5%B8%82%E5%9C%A8%E7%BA%BF%E6%95%99%E8%82%B2%E6%89%B6%E6%99%BA%E8%AF%BE%E5%A0%82%EF%BC%88%E7%AC%AC%E4%B8%80%E6%9C%9F%EF%BC%89%E6%B4%BB%E5%8A%A8%E7%9A%84%E9%80%9A%E7%9F%A5.pdf">关于开展2023年全市在线教育扶智课堂(第一期)活动的通知</el-link>
@@ -103,7 +112,7 @@ function browserOpen(path: string, flag?: boolean) {
             <el-link
               href="https://ossdownload.bozedu.net/data/ycxckt/%E5%85%B3%E4%BA%8E%E5%BC%80%E5%B1%952023%E5%B9%B4%E5%85%A8%E5%B8%82%E5%9C%A8%E7%BA%BF%E6%95%99%E8%82%B2%E6%89%B6%E6%99%BA%E8%AF%BE%E5%A0%82%EF%BC%88%E7%AC%AC%E4%BA%8C%E6%9C%9F%EF%BC%89%E6%B4%BB%E5%8A%A8%E7%9A%84%E9%80%9A%E7%9F%A5.pdf">关于开展2023年全市在线教育扶智课堂(第二期)活动的通知</el-link>
           </el-carousel-item>
-        </el-carousel>
+        </el-carousel> -->
       </template>
     </el-alert>
   </div>