hejianhao
2026-04-27 17034ca35b86437a37e20891abf0f9efada6ad02
refactor(robotaxi): 移除未使用的隐私相关工具函数

清理不再需要的隐私URL常量及相关检查函数,简化代码结构。
1个文件已修改
9 ■■■■■ 已修改文件
src/pages/robotaxi/home/components/privacy-popup/utils.ts 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/robotaxi/home/components/privacy-popup/utils.ts
@@ -1,14 +1,5 @@
import Taro from "@tarojs/taro"
export const privacyUrls = {
  userPrivacy: 'https://events.xiaopeng.com/3b1695.html?ch=00977&ps=event',
  userAgreement: 'https://events.xiaopeng.com/nx9w4x.html?ch=00977&ps=event',
}
export const checkIsPrivicyPage = (url: string) => {
  return Object.values(privacyUrls).includes(url)
}
const STORAGE_KEY = 'has_show_privicy_Robotaxi'
export const privicyShowManager = {
  getHasShow: () => {