登录、注册页样式修改

This commit is contained in:
2026-03-12 09:11:48 +08:00
parent affb2342eb
commit e6d95b52b9
5 changed files with 302 additions and 192 deletions

View File

@@ -1,7 +1,7 @@
const fs = require('fs');
const path = 'D:/骅锋/mall/layouts/admin/components/AdminHeader.uvue';
const fs = require("fs");
const path = "D:/骅锋/mall/layouts/admin/components/AdminHeader.uvue";
let text = fs.readFileSync(path, 'utf-8');
let text = fs.readFileSync(path, "utf-8");
const targetScript = `<script setup lang="uts">
import { ref, computed } from 'vue'
@@ -63,7 +63,10 @@ function handleLogout() {
const props = defineProps<{`;
text = text.replace(/<script setup lang=["']uts["']>[\s\S]*?const props = defineProps</, targetScript + "");
text = text.replace(
/<script setup lang=["']uts["']>[\s\S]*?const props = defineProps</,
targetScript + "",
);
fs.writeFileSync(path, text, 'utf-8');
console.log('Done');
fs.writeFileSync(path, text, "utf-8");
console.log("Done");