添加个人中心及按角色展示内容
This commit is contained in:
10
simplify2.py
Normal file
10
simplify2.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import codecs
|
||||
file_path = r'd:\\骅锋\\mall\\layouts\\admin\\store\\adminNavStore.uts'
|
||||
with codecs.open(file_path, 'r', 'utf-8') as f:
|
||||
text = f.read()
|
||||
|
||||
text = text.replace('function openRoute(routeId: string, addTab: boolean = true): void {', 'function openRoute(routeId: string, addTab: boolean = true): void {\n console.log([AdminNavStore] openRoute called with: );')
|
||||
text = text.replace('activeRouteId.value = routeId', 'activeRouteId.value = routeId\n console.log([AdminNavStore] activeRouteId set to: );')
|
||||
|
||||
with codecs.open(file_path, 'w', 'utf-8') as f:
|
||||
f.write(text)
|
||||
Reference in New Issue
Block a user