fix: postcss build failed
This commit is contained in:
		@@ -86,7 +86,9 @@
 | 
				
			|||||||
          >
 | 
					          >
 | 
				
			||||||
            <User class="h-5 w-5" />
 | 
					            <User class="h-5 w-5" />
 | 
				
			||||||
            <span class="font-medium">{{ userName }}</span>
 | 
					            <span class="font-medium">{{ userName }}</span>
 | 
				
			||||||
            <ChevronDownIcon class="icon transition-transform duration-300 dropdown-icon" />
 | 
					            <ChevronDownIcon
 | 
				
			||||||
 | 
					              class="icon transition-transform duration-300 dropdown-icon"
 | 
				
			||||||
 | 
					            />
 | 
				
			||||||
          </div>
 | 
					          </div>
 | 
				
			||||||
          <ul
 | 
					          <ul
 | 
				
			||||||
            tabindex="0"
 | 
					            tabindex="0"
 | 
				
			||||||
@@ -177,7 +179,7 @@ const handleLogout = () => {
 | 
				
			|||||||
// 生命周期钩子
 | 
					// 生命周期钩子
 | 
				
			||||||
onMounted(() => {
 | 
					onMounted(() => {
 | 
				
			||||||
  loadUserInfo();
 | 
					  loadUserInfo();
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
  // 监听路由变化
 | 
					  // 监听路由变化
 | 
				
			||||||
  router.afterEach(() => {
 | 
					  router.afterEach(() => {
 | 
				
			||||||
    console.log("Route is changing, reloading user info...");
 | 
					    console.log("Route is changing, reloading user info...");
 | 
				
			||||||
@@ -186,7 +188,7 @@ onMounted(() => {
 | 
				
			|||||||
});
 | 
					});
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style scoped>
 | 
					<style scoped lang="postcss">
 | 
				
			||||||
@import "../assets/main.css";
 | 
					@import "../assets/main.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.icon {
 | 
					.icon {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -61,8 +61,8 @@ function handleTabChange(event: Event) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<style scoped>
 | 
					<style scoped lang="postcss">
 | 
				
			||||||
@import "../assets/main.css";
 | 
					@import "@/assets/main.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.icon {
 | 
					.icon {
 | 
				
			||||||
  @apply h-4 w-4 opacity-70 mr-1.5;
 | 
					  @apply h-4 w-4 opacity-70 mr-1.5;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -221,7 +221,7 @@ onMounted(async () => {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
<style scoped lang="postcss">
 | 
					<style scoped lang="postcss">
 | 
				
			||||||
/* 样式保持不变 */
 | 
					/* 样式保持不变 */
 | 
				
			||||||
@import "../assets/main.css";
 | 
					@import "@/assets/main.css";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.animate-slideRight {
 | 
					.animate-slideRight {
 | 
				
			||||||
  animation: slideRight 0.3s ease-out forwards;
 | 
					  animation: slideRight 0.3s ease-out forwards;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,8 @@
 | 
				
			|||||||
  "extends": "@vue/tsconfig/tsconfig.dom.json",
 | 
					  "extends": "@vue/tsconfig/tsconfig.dom.json",
 | 
				
			||||||
  "include": [
 | 
					  "include": [
 | 
				
			||||||
    "env.d.ts",
 | 
					    "env.d.ts",
 | 
				
			||||||
    "src/**/*",
 | 
					    "src/**/*.ts",
 | 
				
			||||||
 | 
					    "src/**/*.tsx",
 | 
				
			||||||
    "src/**/*.vue"
 | 
					    "src/**/*.vue"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
  "exclude": [
 | 
					  "exclude": [
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user