Files
medical-mall/simplify3.py

9 lines
409 B
Python

import codecs
file_path = r'd:\\骅锋\\mall\\layouts\\admin\\AdminLayout.uvue'
with codecs.open(file_path, 'r', 'utf-8') as f:
text = f.read()
text = text.replace('const currentComponent = computed<any>(() => {', 'const currentComponent = computed<any>(() => {\n console.log([AdminLayout] Computing component for activeRouteId: );')
with codecs.open(file_path, 'w', 'utf-8') as f:
f.write(text)