Files
medical-mall/fix_header_css.py

11 lines
504 B
Python

import codecs
file_path = r'd:\\骅锋\\mall\\layouts\\admin\\components\\AdminHeader.uvue'
with codecs.open(file_path, 'r', 'utf-8') as f:
text = f.read()
text = text.replace('.header-right{ \n display:flex;', '.header-right{ \n position: relative;\n z-index: 99;\n pointer-events: auto;\n display:flex;')
text = text.replace('.header{\n height: 56px;', '.header{\n position: relative;\n z-index: 90;\n height: 56px;')
with codecs.open(file_path, 'w', 'utf-8') as f:
f.write(text)