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:6764,currentPage:1,targetPage:1,total:28,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:15,url:'/t/0f074b236a045c7665770f3a1528',name:'软路由',color:'#66BB6A',icon:'mdi-router-wireless-settings',},],posts:[{id:82772,num:0,uid:15059,content:'目前家里用的是 ac86u ,目前好像不太行了。配合 nas ,使用了话说的域名,做了外网转发,刷了梅林版,主要使用插件 clash 。\u003Cbr\u003E想要新的路由器也可以支持类似 clash 的,外网转发,最好也带域名。\u003Cbr\u003E小米还是中兴都可以做到以上点吗?\u003Cbr\u003E目前看的型号有中兴 be7200pro ,小米 br6500pro ,小米 be7000.\u003Cbr\u003E求大佬指点',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 19:18:37',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82773,num:1,uid:53,content:'买了个中兴的,只能说够用,app 非常简陋',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 19:19:17',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82774,num:2,uid:15059,content:'也是觉得中兴的简陋些,但是看比较稳定。小米的看不太稳定',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 19:55:04',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82775,num:3,uid:13852,content:'86U 退役好久了,换了 Redmi ax6000 ,前两天叠国补中兴 7200pro+稳如老狗',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 20:59:52',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82776,num:4,uid:3881,content:'我用的就是中兴 be7200pro ,用到现在没啥问题。从没用过 App ,也没有啥需求非得下 App 。直接网页配置就够了。\u003Cbr\u003E\u003Cbr\u003E小米的注意避坑带中枢网关的那款,其他的据说也还行。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 21:03:17',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82777,num:5,uid:1051,content:'用过很多路由器,后来因为中枢网关需求,换了小米 6500 pro ,发现的稳定得超出想象,重来没手动重启过(除非固件更新、停电),完全是忽略它的存在。。。。\u003Cbr\u003E以前用的路由器最起码要 2 个月手动重启一次。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 21:56:09',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82778,num:6,uid:4076,content:'能刷 openwrt 么',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 21:59:20',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82779,num:7,uid:4076,content:'自动定时重启有好处。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 21:59:45',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82780,num:8,uid:4093,content:'x86 刷 op 做软路由+信号好的硬路由做 ap',ipRegion:'',updatedByUid:0,createdAt:'2025-03-26 22:53:14',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82781,num:9,uid:15060,content:'中兴的路由器应该都刷不了固件.其他完美.7200Pro+温度也要比 5400Pro 低很多.\u003Cbr\u003E既然有 Nas,根本不需要 Nas 上实现科学功能,搞个旁路由,中兴路由器里设置下 DHCP 的网关改成旁路由不就行了吗?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 00:33:56',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82782,num:10,uid:15060,content:'6500Pro 刚上市的时候,到处都是喷断流的,现在完美解决了?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 00:34:43',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82783,num:11,uid:12842,content:'很早以前也是 ac86u ,对硬件很多要求,后来核心走 openwrt ,剩下的都是当 ap 用,tp-link 好几年了,自己 mesh 组网也方便,用起来没觉得有什么问题,我承认以前对 tplink 有些心中大山般的成见了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 00:44:46',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82784,num:12,uid:9191,content:'op 官包支持 11ax 的都没几个,哥们你还搁着选上 11be 了。。。\u003Cbr\u003E老老实实有线搭 ap 。。。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 00:52:58',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82785,num:13,uid:348,content:'openwrt 目前只有 wifi 6 支持, 7 支持才刚开始做\u003Cbr\u003E建议弄台 x86 主机做路由器, ap 买 tp 中兴等厂商的路由器组网, 可以看看 acwifi 等网站的评测\u003Cbr\u003E小米路由器只适合刷机, 败家之眼不需要考虑',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 01:56:51',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82786,num:14,uid:1043,content:'想玩出花来,就是支 openwrt 的 mtk 路由,\u003Cbr\u003E\u003Cbr\u003E\u200B\u003Cbr\u003E\u200B看了一晚上移动的,openwrt 官网为 CMCC RAX3000m 系列,cpu mt7981B ,内存 512MB ,闪存大于 128MB ,带 1 个 USB 。\u003Cbr\u003E\u003Cbr\u003E我没买都是 100mbps ,随便 mtk7620 都行,但是就像电脑一样,和 mtk7621 比起来明显觉得网页呈现的速度还是慢了。\u003Cbr\u003E\u200B\u003Cbr\u003E\u200B',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 06:22:11',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82787,num:15,uid:1051,content:'我没出现过这个问题',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 07:55:50',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82788,num:16,uid:15061,content:'难道不是 netgear 吗?',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 08:24:29',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82789,num:17,uid:2276,content:'优倍快 真的是我心中梦想的 路由器',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 09:11:46',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[18,],mentionUsers:[],likeUsers:[],},{id:82790,num:18,uid:342,content:'#17 除了价格别的都很美好',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 09:30:19',updatedAt:'2025-03-29 12:04:17',mentionNum:17,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:82791,num:19,uid:14221,content:'刚入手的 ax86u pro\u003Cimg src\u003D\"https://i.imgur.com/NIvxivj.png\"\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-27 09:48:19',updatedAt:'2025-03-29 12:04:17',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[1051,{uid:1051,url:'/u/373b0a0e6a045c76606f576f3d0b182b',avatar:'/a/373b0a0e6a045c76606f576f3d0b182b',username:'xpn282🤖',}],[348,{uid:348,url:'/u/08285b3d6a045c77636e5e6f045f2b36',avatar:'/a/08285b3d6a045c77636e5e6f045f2b36',username:'vcn8yjOogEL🤖',}],[3881,{uid:3881,url:'/u/1101582e6a045c746862576f342c0177',avatar:'/a/1101582e6a045c746862576f342c0177',username:'Mithril🤖',}],[15060,{uid:15060,url:'/u/1838561d6a045d72606c566f4f1e0136',avatar:'/a/1838561d6a045d72606c566f4f1e0136',username:'timor🤖',}],[342,{uid:342,url:'/u/683e550f6a045c77636e546f2e312128',avatar:'/a/683e550f6a045c77636e546f2e312128',username:'SakuraYuki🤖',}],[4093,{uid:4093,url:'/u/1c1d622e6a045c736063556f2d516270',avatar:'/a/1c1d622e6a045c736063556f2d516270',username:'tamshy🤖',}],[15061,{uid:15061,url:'/u/2c2b06086a045d72606c576f395c0421',avatar:'/a/2c2b06086a045d72606c576f395c0421',username:'sutking🤖',}],[2276,{uid:2276,url:'/u/6c2a460a6a045c75626d506f15263c21',avatar:'/a/6c2a460a6a045c75626d506f15263c21',username:'PeiXyJ🤖',}],[13852,{uid:13852,url:'/u/682d63026a045d74686f546f2f06230a',avatar:'/a/682d63026a045d74686f546f2f06230a',username:'axxxiba🤖',}],[53,{uid:53,url:'/u/13070b216a045c77606f556f12016b2e',avatar:'/a/13070b216a045c77606f556f12016b2e',username:'zuosiruan🤖',}],[12842,{uid:12842,url:'/u/097941286a045d75686e546f245f173e',avatar:'/a/097941286a045d75686e546f245f173e',username:'Maxwe11🤖',}],[1043,{uid:1043,url:'/u/0a2c42186a045c76606e556f313e1e3f',avatar:'/a/0a2c42186a045c76606e556f313e1e3f',username:'datocp🤖',}],[9191,{uid:9191,url:'/u/380304206a045c7e6163576f180f6072',avatar:'/a/380304206a045c7e6163576f180f6072',username:'ntedshen🤖',}],[15059,{uid:15059,url:'/u/1c3d023b6a045d72606f5f6f205a2312',avatar:'/a/1c3d023b6a045d72606f5f6f205a2312',username:'qingpei88800🤖',}],[14221,{uid:14221,url:'/u/312a65286a045d736268576f31393036',avatar:'/a/312a65286a045d736268576f31393036',username:'MrXiong🤖',}],[4076,{uid:4076,url:'/u/6c0a5a036a045c73606d506f3b5c3074',avatar:'/a/6c0a5a036a045c73606d506f3b5c3074',username:'ZeekChatCom🤖',}],]),related:[{title:'tailscale 和 zerotier 哪个好用,功能多?',url:'/d/360b75096a045c77606a567a445d6a6a2b280405',},{title:'Openwrt 上如何设置递归静态路由',url:'/d/2f2c575e6a045c77606a567a465f676a5b2f3139',},{title:'小米 wifi7 路由器千兆都跑不满',url:'/d/313003376a045c77606a567a475c606a1c101014',},{title:'家庭路由器组网求助',url:'/d/3711025f6a045c77606a56754f5e636a3b0c3505',},{title:'EasyTier 组网是真不错',url:'/d/6a035e586a045c77606a56744051666a5d332b01',},{title:'目前好像感受到了 openwrt 作为主路由的无力感',url:'/d/373048036a045c77606a56744051616a2517642b',},{title:'畅网 N100 软路由死机频繁, PVE + 爱快 + IstoreOS 配置,换硬盘后仍未解决,求助!',url:'/d/037d540e6a045c77606a56744251656a38131d3e',},{title:'城中村租房 OpenWrt 抢共享带宽问题求助',url:'/d/6b3b512b6a045c77606a5674425d626a2e731038',},{title:'两个路由器之间的电力猫应该如何配置?',url:'/d/0f784b076a045c77606a56744258656a2b711f64',},{title:'大佬们能帮我看看拓扑图吗?现在旁路无法上网,折腾两天了,头都大了。',url:'/d/3f2c713a6a045c77606a56744358656a15356b34',},{title:'求推荐带两路 SFP+口的路由器',url:'/d/620859076a045c77606a5674455f656a1b131f15',},{title:'你们的AdGuard home能去youtube客户端广告吗',url:'/d/1c7c482c6a045c77606a5674465f6a6a5b2f0319',},{title:'有什么好用的软路由系统推荐吗',url:'/d/3d3b7e1d6a045c77606a5674465b636a2902231f',},{title:'openwrt 去广告的方案',url:'/d/1f3c621a6a045c77606a56774550656a0d326304',},{title:'r2s 的内存卡(带op系统 ) 插r4s 上能否直接使用。',url:'/d/2f38780f6a045c77606a5677455b6b6a0a7a1a2a',},{title:'AdGuard现在哪里还有活动吗?',url:'/d/1d1077186a045c77606a56764e5b616a162f6736',},{title:'r2s 只能跑满300兆啊。4s 5s 哪个能跑满千啊',url:'/d/080b7a2b6a045c77606a5676415c6a6a1c20270b',},{title:'分享一下用AdguardHome和Nginx的配置,让你可以自由DIY路径',url:'/d/6d10533f6a045c77606a5676415a626a0f273467',},{title:'adguard home的doh服务终于搭建成功了',url:'/d/69707b0c6a045c77606a567641586b6a5d361b64',},{title:'AdGuard home过滤手机广告——服务端',url:'/d/2a250a046a045c77606a5671405e636a0a3a2126',},],} 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")