const{createApp}=Vue const{createVuetify,useGoTo,useDisplay}=Vuetify var data={alert:{show:false,color:'success',text:'',timeout:0,},theme:{dark:false,},nav:{showDrawer:false,showTOC:true,tocPanel:0,tab:'account',post:{discussionId:7466,currentPage:1,targetPage:1,total:94,anchor:0,goToOptions:{container:null,duration:0,easing:'easeInOutCubic',offset:-100,},worker:null,task:[],active:[],apiLock:[],originLike:new Map([]),},related:{block:1,}},search:{width:80,text:null,loading:false,},tags:[{id:17,url:'/t/327878556a045c76677716150f0d',name:'Apple',color:'#66BB6A',icon:'mdi-apple',},],posts:[{id:95423,num:0,uid:16804,content:'\u003Cp\u003E很奇怪,这次 iOS 18.4 更新的 5G-A (5.5G),我没在国外看到人讨论,比如 reddit/youtube ,英文视频也没提,苹果的更新说明也没写,好像只有中国的用户在讨论 5G-A 信号的事情?\u003C/p\u003E\u003Cp\u003E难道这个是只对中国特供的什么更新么?为什么没看到什么外国人在讨论,还是说国外早已普及了 5G-A ,我们被蒙蔽了而已?\u003C/p\u003E\u003Cp\u003E有没有海外的同学可以证实一下,为什么感觉这事情只有简中在讨论啊?\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:24:25',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95424,num:1,uid:15433,content:'国外 4 和 5G 一开始就满速的 只有中国是被自己阉割的 现在中国 WIFI7 都还是阉割调 6GHZ 的',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:37:12',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[29,],mentionUsers:[],likeUsers:[],},{id:95425,num:2,uid:277,content:'有没有人成功开启的??有什么开启条件?',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:43:27',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[3,68,77,],mentionUsers:[],likeUsers:[],},{id:95426,num:3,uid:874,content:'#2 半个多月前更新 18.4beta 版系统就用上 5GA 了。电信没什么开启条件,升级就有,现在很多城市提速包都是免费的',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:45:23',updatedAt:'2025-04-04 21:45:46',mentionNum:2,mentionedBy:[5,],mentionUsers:[],likeUsers:[],},{id:95427,num:4,uid:8747,content:'事情要一步一步来,美国这边还在缓慢推进 5G standalone ,5G-A 的 priority 比较低。先等我们红脖州解决一下某些大型商业 plaza 人一多,手机就有信号但上不了网的问题吧😂',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:46:23',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95428,num:5,uid:277,content:'#3 我是移动和联通,今天更新了系统,还是只显示 5G 的标志,没有 5GA 的标志,是需要开提速包吗??',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:46:24',updatedAt:'2025-04-04 21:45:46',mentionNum:3,mentionedBy:[8,],mentionUsers:[],likeUsers:[],},{id:95429,num:6,uid:16805,content:'5G-A 即 5G Advanced 于 2024 年的 3GPP Release 18 才定稿,而根据 PCmag 的这篇报道来说,T-Mobile 的 5G-A 部署还处于即将上线的阶段。https://www.pcmag.com/news/t-mobile-tech-president-were-taking-5g-advanced-nationwide-mwc-2025\u003Cbr\u003E简单来说没有讨论的原因就是因为还没开始大规模部署。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:47:24',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95430,num:7,uid:4200,content:'wifi7 6ghz 也不是咱们想阉割的,人家都不是给咱们设计的,哎。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:52:06',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95431,num:8,uid:874,content:'#5 联通普通套餐不开提速包,在覆盖的区域也会显示 5G-A 。我怀疑你所在的区域还没覆盖',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:54:40',updatedAt:'2025-04-04 21:45:46',mentionNum:5,mentionedBy:[36,],mentionUsers:[],likeUsers:[],},{id:95432,num:9,uid:14269,content:'这都 2025 年了哎,不让他们炫 5G-A ,难道还有人拦着他们炫网速了吗?😄',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:57:17',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95433,num:10,uid:852,content:'我的日版 iPhone 15 Pro Max 更新完有显示 5GA',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:58:22',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[62,],mentionUsers:[],likeUsers:[],},{id:95434,num:11,uid:7606,content:'啊? 5G-A 还是 5.5G ?我的 VIVO X100 最近也开始会显示 5GA ,但是每次 5GA 的时候,都是网速很慢、或者网络断断续续,我还以为 5GA 是 5G 的弱网环境- -! 哈哈哈 /dog',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 15:59:53',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95435,num:12,uid:758,content:'本来就支持 CA 的聚合,只是改了显示而已,没什么厉害的东西。不信你测速,还是一样的。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:01:19',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95436,num:13,uid:16806,content:'什么?美国还没推进完 5G SA ?一方面美国有特供毫米波,另一方面独立 5G 还没部署完,有点奇葩',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:16:33',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[37,],mentionUsers:[],likeUsers:[],},{id:95437,num:14,uid:16806,content:'不太一样,实测 5GA 更容易跑满运营商给的速率,普通 5G 只能跑满一半或者最多 2/3',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:17:35',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[19,],mentionUsers:[],likeUsers:[],},{id:95438,num:15,uid:995,content:'我的 5GA 显示了一下下,过了几分钟就又没了。。为啥',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:18:07',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95439,num:16,uid:5083,content:'我也是',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:35:08',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95440,num:17,uid:3778,content:'我用中国电信跑 5GA ,下载原神更新包最高有 50 多 MB/S',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:37:27',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95441,num:18,uid:12004,content:'已经更新 18.4 ,但仍然在锁 4G ,动不动 5Ga 甚至 5G 就没信号或是变成弱网什么都打不开太难受了。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 16:41:46',updatedAt:'2025-04-04 21:45:46',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:95442,num:19,uid:758,content:'#14 更容易。。。2CA 或者 3CA 不是更容易,是你直接看到质的飞跃。本来就支持多载波聚合,所以 5GA 只是一个装饰品,让你感觉很厉害的样子。\u003Cimg src\u003D\"https://i.imgur.com/NIvxivj.png\"\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-04-01 17:17:46',updatedAt:'2025-04-04 21:45:46',mentionNum:14,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[16805,{uid:16805,url:'/u/150c502a6a045d71686a536f110c2112',avatar:'/a/150c502a6a045d71686a536f110c2112',username:'Semidio🤖',}],[7606,{uid:7606,url:'/u/6f7805356a045c70666a506f2e051d73',avatar:'/a/6f7805356a045c70666a506f2e051d73',username:'SoulFlame🤖',}],[2287,{uid:2287,url:'/u/0d2375216a045c756262516f23083520',avatar:'/a/0d2375216a045c756262516f23083520',username:'frankilla🤖',}],[1172,{uid:1172,url:'/u/1f0d410a6a045c76616d546f45392609',avatar:'/a/1f0d410a6a045c76616d546f45392609',username:'wy315700🤖',}],[14269,{uid:14269,url:'/u/182f433a6a045d73626c5f6f163b6014',avatar:'/a/182f433a6a045d73626c5f6f163b6014',username:'leshijiazu🤖',}],[16806,{uid:16806,url:'/u/083b483f6a045d71686a506f122d3214',avatar:'/a/083b483f6a045d71686a506f122d3214',username:'honeys🤖',}],[277,{uid:277,url:'/u/293841266a045c77626d516f3f052a32',avatar:'/a/293841266a045c77626d516f3f052a32',username:'frankkly🤖',}],[758,{uid:758,url:'/u/2825783d6a045c77676f5e6f01392b0c',avatar:'/a/2825783d6a045c77676f5e6f01392b0c',username:'msdurex🤖',}],[4200,{uid:4200,url:'/u/3e0c74196a045c73626a566f07260916',avatar:'/a/3e0c74196a045c73626a566f07260916',username:'mringg🤖',}],[8747,{uid:8747,url:'/u/0b3373076a045c7f676e516f043d343e',avatar:'/a/0b3373076a045c7f676e516f043d343e',username:'shutongxinq🤖',}],[16804,{uid:16804,url:'/u/280d6a386a045d71686a526f21016a2c',avatar:'/a/280d6a386a045d71686a526f21016a2c',username:'hsir🤖',}],[5083,{uid:5083,url:'/u/0023742c6a045c726062556f343f0926',avatar:'/a/0023742c6a045c726062556f343f0926',username:'C0dEr🤖',}],[852,{uid:852,url:'/u/223e05066a045c77686f546f033d092e',avatar:'/a/223e05066a045c77686f546f033d092e',username:'lynan🤖',}],[3778,{uid:3778,url:'/u/360b0b386a045c74676d5e6f223c3c72',avatar:'/a/360b0b386a045c74676d5e6f223c3c72',username:'Goooooos🤖',}],[16168,{uid:16168,url:'/u/103a5b5a6a045d71616c5e6f2338272a',avatar:'/a/103a5b5a6a045d71616c5e6f2338272a',username:'www114514🤖',}],[13693,{uid:13693,url:'/u/023842016a045d746663556f47182006',avatar:'/a/023842016a045d746663556f47182006',username:'blank0ken🤖',}],[12004,{uid:12004,url:'/u/6d7c545a6a045d75606a526f273c0a20',avatar:'/a/6d7c545a6a045d75606a526f273c0a20',username:'bearbest🤖',}],[874,{uid:874,url:'/u/6e0864216a045c77686d526f2e030611',avatar:'/a/6e0864216a045c77686d526f2e030611',username:'wxw752🤖',}],[15433,{uid:15433,url:'/u/113c5a096a045d726469556f2e0e1d15',avatar:'/a/113c5a096a045d726469556f2e0e1d15',username:'xiuming🤖',}],[9248,{uid:9248,url:'/u/2e2842196a045c7e626e5e6f053f6009',avatar:'/a/2e2842196a045c7e626e5e6f053f6009',username:'SantinoSong🤖',}],[995,{uid:995,url:'/u/6c2a791c6a045c776963536f305d3b0e',avatar:'/a/6c2a791c6a045c776963536f305d3b0e',username:'Loratad1ne🤖',}],]),related:[{title:'mac mini m4 32G 扩容到 2T,能当黑奴部署 sd 或 flux 么',url:'/d/203e71236a045c77606a567a445c616a03040937',},{title:'pdd macmini 2979 了,忍不住还是下单了',url:'/d/293a610b6a045c77606a567a4458606a1b706767',},{title:'求 macOS 好用的录音软件,关键录微信通话和电话, wiretap 下架了。无论软件启动顺序总是能录下才是王。。。',url:'/d/120c45386a045c77606a567a455e616a07341262',},{title:'Spotlight 图标竟然穿模了, macOS 15 越来越不苹果了',url:'/d/0c0a54216a045c77606a567a455c676a38082b3d',},{title:'MacOS 15.4 休眠 Bug:休眠后以太网会断开连接, Wi-Fi 不会',url:'/d/360a785e6a045c77606a567a465a646a2b2f6b2b',},{title:'mac mini pro 64 和 mac studio',url:'/d/000443266a045c77606a56754e58626a5e266611',},{title:'刚买的 mba m4,试用 crossover 玩玩暗黑 2,黑屏啊',url:'/d/3d7a45266a045c77606a56754f506a6a2f240660',},{title:'京东 19199 买 MBP M4pro 14 核 48G 1T 国家补贴+教育优惠',url:'/d/227a745e6a045c77606a56754f50666a5934253d',},{title:'Macmini M4 是否继续使用。',url:'/d/3b1b540e6a045c77606a56754f5f656a08101d65',},{title:'诡异! Enter 键自动唤醒 apple music 并自动播放',url:'/d/2071601d6a045c77606a56754f5a626a04002663',},{title:'IOS 18.4 safari 发热严重',url:'/d/121366206a045c77606a5675425c626a0d280366',},{title:'IOS 18.4 中文 intelligence 大家有啥想吐槽的么(非国行机)',url:'/d/380854296a045c77606a5675425a626a34731a2a',},{title:'macos Sequoia 15.4 中 chronod 一直占用 100%+ CPU',url:'/d/3b7c73236a045c77606a56754350646a58202b1f',},{title:'intel 的 mac 远程连接 m 芯片 mac 最佳姿势是什么?',url:'/d/2f08582f6a045c77606a5675435e656a29252322',},{title:'M1 iPad pro 耗电惊人',url:'/d/353b470e6a045c77606a5675435e606a25171411',},{title:'日经贴:推荐个 mac 下适用的机械键盘',url:'/d/3f3978016a045c77606a5675435f666a030f042a',},{title:'MacBook 的 AC+ 是不是只有意外险的作用,并没有延长保修?',url:'/d/387c475e6a045c77606a5675435c666a272c3f17',},{title:'iPhone 的 Apple Intelligence 需要下载多久?',url:'/d/1b2f48196a045c77606a5675435a636a02731d1e',},{title:'mac mini 放办公室摸鱼怎么样?',url:'/d/68395e0b6a045c77606a56754359646a182a241e',},{title:'macOS 15.4 稳定出现一个大 bug',url:'/d/3b0e5b1b6a045c77606a567544506b6a08112708',},],} const App={setup(){const goTo=useGoTo() const{mdAndUp}=useDisplay() return{goTo,mdAndUp}},data(){return data;},mounted(){const themeDark=localStorage.getItem("themeDark") if(themeDark!==null){this.theme.dark=JSON.parse(themeDark)} if(this.nav.post.total>(this.nav.post.currentPage-1)*100+20){let moreLen=100 if(this.nav.post.total({id:null,num:(this.nav.post.currentPage-1)*100+v,uid:null,content:null,ipRegion:null,updatedByUid:null,createdAt:null,updatedAt:null,mentionNum:null,mentionedBy:null,mentionUsers:null,likeUsers:null,})) this.posts.push(...morePosts.slice(20))} this.workerStart() const hash=window.location.hash const match=hash.match(/#(\d+)/) if(match){const n=parseInt(match[1],10) if(n>=(this.nav.post.currentPage-1)*100&&n{this.jumpTo(n)})}} this.$nextTick(()=>{this.addHeadingIds() tocbot.init({tocSelector:'.toc',contentSelector:'#post-content-0',headingSelector:'h2, h3, h4',headingsOffset:100,scrollSmoothOffset:-100,scrollSmooth:true,collapseDepth:6,onClick:function(e){setTimeout(()=>{history.replaceState(null,'',window.location.pathname+window.location.search)},0)},}) tocbot.refresh()});},beforeUnmount(){this.workerStop() if(this.quill){this.quill.destroy() this.quill=null}},computed:{dposts(){return this.posts.slice(20);},},created(){},methods:{successAlert(msg){this.alert={show:true,color:'success',text:msg,timeout:1500,}},failureAlert(msg){this.alert={show:true,color:'error',text:msg,timeout:5000,}},flipThemeDark(){this.theme.dark=!this.theme.dark localStorage.setItem("themeDark",JSON.stringify(this.theme.dark))},toSearch(){if(!this.search.text){this.failureAlert('搜索词不能为空') return} let keywords=this.search.text.trim() if(keywords.length<1){this.failureAlert('搜索词不能为空') return} if(keywords.length>100){this.failureAlert('搜索词过长') return} this.doSearch(keywords)},toReg(){window.location.href="/reg"},toLogin(){window.location.href="/login"},toPage(){let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,this.nav.post.targetPage>1?`/${this.nav.post.targetPage}`:'') window.location.href=url},toLoadRelated({done}){if(this.my&&this.my.uid){this.apiLoadRelated({done})}else{done('ok')}},workerStart(){this.nav.post.worker=setInterval(()=>{this.workerLoad()},500);},workerStop(){if(this.nav.post.worker){clearInterval(this.nav.post.worker);this.nav.post.worker=null;}},async jumpTo(num){const page=Math.floor(num/100)+1 const i=num-(page-1)*100 if(page===this.nav.post.currentPage){this.goTo("#post-"+num,this.nav.post.goToOptions) if(!this.posts[i].id){const block=Math.floor(num/20)+1 this.nav.post.apiLock[block]=true await this.apiLoadPosts(block) this.$nextTick(()=>{this.goTo("#post-"+num,this.nav.post.goToOptions)})}}else{let url=window.location.href url=url.replace(/(\/\d+)?(#[0-9]+)?$/,page>1?`/${page}`:'') url=url+"#"+num window.location.href=url}},postIntersect(num){return(isIntersecting,entries,observer)=>{if(isIntersecting){this.nav.post.task.push(num) this.nav.post.active.push(num) this.nav.post.active=this.nav.post.active.filter(item=>Math.abs(item-num)<=5) this.nav.post.active.sort((a,b)=>a-b)}else{this.nav.post.active=this.nav.post.active.filter(item=>item!==num)} if(this.nav.post.active[0]){this.nav.post.anchor=this.nav.post.active[0]}else{this.nav.post.anchor=0}}},async apiLoadPosts(block){try{const response=await axios.post('/fapi/v1/post/block/'+block,{discussionId:this.nav.post.discussionId,}) if(response.data.code===0){response.data.data.posts.forEach(post=>{const i=post.num%100 Object.assign(this.posts[i],post)}) response.data.data.users.forEach(user=>{this.usersMap.set(user.uid,user)})}else{this.failureAlert('回帖数据加载失败: '+response.data.msg)}}catch(error){this.failureAlert('回帖数据加载失败: '+error)} this.nav.post.apiLock[block]=false},workerLoad(){while(this.nav.post.task.length){const num=this.nav.post.task.pop() const i=num-(this.nav.post.currentPage-1)*100 if(!this.posts[i].id){const block=Math.floor(num/20)+1 if(!this.nav.post.apiLock[block]){this.nav.post.apiLock[block]=true this.apiLoadPosts(block)}}}},getTimeInfo(t){if(!t){return ""} const now=new Date();const then=new Date(t);const diff=now-then;const minute=60*1000;const hour=minute*60;const day=hour*24;const month=day*30;const year=month*12;if(diffpost.num===num) if(!post){return "#"+num} const uid=post.uid const username=this.usersMap.get(uid)?.username if(!username){return "#"+num} return username},getUsernameByPostId(id){const post=this.posts.find(post=>post.id===id) if(!post){return "#"+this.getPostNumByPostId(id)} const uid=post.uid const username=this.usersMap.get(uid).username if(!username){return "#"+this.getPostNumByPostId(id)} return username},getPostNumByPostId(id){const post=this.posts.find(post=>post.id===id) return post.num},getPostById(id){const post=this.posts.find(post=>post.id===id) return post},getPostByNum(num){const post=this.posts.find(post=>post.num===num) return post},getAvatarByUid(uid){const avatar=this.usersMap.get(uid)?.avatar if(!avatar){return this.getRandomAvatar()} return avatar},getAvatarByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post){return this.getRandomAvatar()} const uid=post.uid return this.getAvatarByUid(uid)},getRandomAvatar(){const num=Math.floor(Math.random()*100) return "https://randomuser.me/api/portraits/men/"+num+".jpg"},getUrlByUid(uid){const url=this.usersMap.get(uid)?.url if(!url){return ""} return url},getTextByPostNum(num){const post=this.posts.find(post=>post.num===num) if(!post||!post.content){return '点击跳转到#'+num+'查看'} const parser=new DOMParser() const doc=parser.parseFromString(post.content,'text/html') const text=doc.body.textContent||'' return text.slice(0,100)},addHeadingIds(){const content=document.getElementById('post-content-0') if(!content){this.nav.showTOC=false return} const headings=content.querySelectorAll('h2, h3, h4') headings.forEach((heading,index)=>{if(!heading.id){heading.id=`toc-nav-${index}`}}) if(headings.length==0){this.nav.showTOC=false}},async doSearch(keywords){this.search.loading=true try{const response=await axios.post('/fapi/v1/search',{keywords:keywords,}) if(response.data.code===0){if(response.data.data.hash&&response.data.data.hash.length===32){window.location.href="/s/"+response.data.data.hash}else{this.failureAlert('搜索失败: 搜索服务异常')}}else{this.failureAlert('搜索失败: '+response.data.msg)}}catch(error){this.failureAlert('搜索失败: '+error)} this.search.loading=false},debounce(fn,delay){let timer=null return function(...args){if(timer)clearTimeout(timer) timer=setTimeout(()=>{fn.apply(this,args)},delay);};},},watch:{'nav.post.targetPage':{handler:async function(newV,oldV){this.toPage()},immediate:false},},} const vuetify=createVuetify({defaults:{global:{ripple:true,},},}) const app=createApp(App) app.use(vuetify).mount("#app")