You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
因为项目中浏览器上露出文件绝对路径,所以不可以通过模拟黑客测试。
怎样绝对路径变成相对路径或者有别的方法吗?
怎样解决这个问题, 请帮帮忙
import _export_sfc from "/@id/__x00__plugin-vue:export-helper";
export default /* @PURE */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "C:/dev/project/frontend/admin/src/views/user/user_123/index.vue"]]); 《=== 现在绝对路径
// 组件的导出结果
_sfc_main = {
//_expose传的键值对
_expose(),
name: 'App',
// setup函数
setup(){xxx...}
// render函数
render: _sfc_render,
scopeId: xxx
__file: 文件绝对路径
}
Beta Was this translation helpful? Give feedback.
All reactions