会员个人中心页面初步完成
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const dir = path.join(__dirname, '../components/memberInfo');
|
||||
const files = fs.readdirSync(dir).filter((f) => f.endsWith('.vue'));
|
||||
|
||||
for (const file of files) {
|
||||
let content = fs.readFileSync(path.join(dir, file), 'utf8');
|
||||
content = content.replace(
|
||||
/export default \{\n\s+options:/,
|
||||
'export default {\n options:'
|
||||
);
|
||||
fs.writeFileSync(path.join(dir, file), content, 'utf8');
|
||||
}
|
||||
Reference in New Issue
Block a user