Просмотр исходного кода

fix: index.html swiper 样式引用路径对齐扁平 assets 目录; 移除 tab1 模板内非法 <head> 标签与失效外链 unpkg

- index.html 引用 assets/swiper.min.css (本地打包, 无外网依赖)
- 删除组件模板中的 <head> 包裹 (Angular 模板不允许, 且 unpkg 外链在离线/内网环境加载失败)

Co-Authored-By: Claude Code <noreply@anthropic.com>
liuyuyang 6 дней назад
Родитель
Сommit
cc6b585e54
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/app/tab1/tab1.page.html
  2. 1 1
      src/index.html

+ 1 - 1
src/app/tab1/tab1.page.html

@@ -5,7 +5,7 @@
     </ion-title>
   </ion-toolbar>
 </ion-header>
-<head><link rel="stylesheet" href="https://unpkg.com/swiper/css/swiper.min.css"></head>
+
 <ion-content [fullscreen]="true">
   <ion-header collapse="condense">
     <ion-toolbar>

+ 1 - 1
src/index.html

@@ -18,7 +18,7 @@
   <meta name="apple-mobile-web-app-capable" content="yes" />
   <meta name="apple-mobile-web-app-status-bar-style" content="black" />
 <!-- Swiper轮播图样式 -->
-<link rel="stylesheet" href="assets/swiper/swiper.min.css">
+<link rel="stylesheet" href="assets/swiper.min.css">
   <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
   <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
 </head>