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:7076,currentPage:1,targetPage:1,total:42,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:34,url:'/t/0e24610c6a045c74647716303804',name:'NAS',color:'#66BB6A',icon:'mdi-nas',},],posts:[{id:89207,num:0,uid:16032,content:'\u003Cp\u003E最近准备入手第一台 NAS ,目前看中的是两款两盘位产品:\u003C/p\u003E绿联 DXP2800 (大约 1800 左右)群晖 DS224+(接近 2800 )\u003Cp\u003E先说一下我为什么选两盘位的:\u003C/p\u003E\u003Cp\u003E其实我买 NAS 主要是为了体验一下,不会存太多电影或大文件。即使存电影,也是看完就删。主要用途是电脑上的一些资料备份、手机照片备份这些轻度需求。四盘位对我来说有点浪费,不仅价格上去,还得额外多买两块盘,性价比就不高了。\u003C/p\u003E\u003Cp\u003E我自己有几点比较看重的点:\u003C/p\u003E系统稳定好用,不折腾文件隐私安全性好,我不是极端“隐私焦虑症”用户,但也不希望我正常存进去的东西被上传到厂商服务器,或者说系统有严重的漏洞,导致别人有机会访问我硬盘里的内容。支持称加密最好,比如即使硬盘被拔走,别人也打不开;还有就是希望支持 OneDrive 同步,最好也带加密功能。\u003Cp\u003E纠结的点:\u003C/p\u003E群晖系统好用早有耳闻?但对于我的需求来说,值一千多的价差吗?毕竟对我这种轻度用户来说,用不到那么多高级功能。绿联 DXP2800 的系统现在到底怎么样了?我看到不少人之前吐槽绿联的系统不行、UI 差、安全性也让人担心,但那些帖子大多是去年的,有人说现在系统更新之后好很多了。我想问下现在这个说法是否属实?关于绿联的隐私问题有没有确切的说法?我曾看到有传言说绿联 NAS 会上传用户文件或者扫描内容啥的,不知道是否属实,还是只是误解/个别现象?有没有什么已知的严重安全隐患?\u003Cp\u003E总结一下,我对性能要求不高,主要希望用起来省心,不折腾,同时文件存进去之后有点“属于我自己的感觉”,不要动不动就上传或扫描。求真实体验分享!如果有其他两盘位机型推荐也欢迎!\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 05:20:52',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89208,num:1,uid:149,content:'ds224+ 没有 2800 的价格,大概 2200 左右吧。\u003Cbr\u003E群晖被诟病 cpu 硬件性能弱,外网穿透慢,如果你在意这些,那没有办法。\u003Cbr\u003E但你需要加密,和加密同步,群晖是最佳方案,注意加密自己保存好密钥,别重启之后自己都打不开。\u003Cbr\u003E群晖支持 OneDrive 谷歌网盘,百度网盘同步。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 06:22:39',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89209,num:2,uid:11935,content:'封闭系统就买最稳定的,要么就自己装系统定制,最怕的就是半吊子,看着着急什么也干不了。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 07:07:46',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89210,num:3,uid:985,content:'1 、群晖系统好用是指各种企业办公场景的套件比如备份、文件管理之类的,但是群晖移动端 App 一坨屎,还不如几个国产厂家的,不少轻度用户是感受不到所谓的“群晖好用”的\u003Cbr\u003E\u003Cbr\u003E3 、很多人监控过绿联 NAS 的网络活动,在关闭绿联 Link 的情况下,到目前为止并没有人发现过绿联往外部地址传可疑数据。在我看来在国内绿联的隐私某种程度是不如群晖的(极端情况下更可能配合老大哥查你的数据,与之对应群晖更可能配合西大查你的数据),但对于非极端焦虑症用户差不太多,都不是那种会没事把你的数据上传给厂家的类型。极端焦虑患者可能更适合裸机装发行版 Linux',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 07:49:32',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89211,num:4,uid:2462,content:'用绿联,隐私这个事情,没有上限',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 08:25:44',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89212,num:5,uid:11107,content:'国产好用,但不是绿联,建议极空间或接下来的小米,或者威联通比群晖可折腾性更高',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 09:03:35',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89213,num:6,uid:2760,content:'我还以为我看错了,dxp2800 好价才 1300 啊,而且 4800 都有 1500 的好价不买 4 盘位?买 nas 盘位很重要。另外绿联的系统目前基础应用可以了,恰巧 docker 又做的比较完善了,可入',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 09:04:57',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89214,num:7,uid:3692,content:'差 1000 多啊,差一个 10~12T 硬盘的价格\u003Cbr\u003E\u003Cbr\u003E从群晖 25 年新品发布看,基本已经不鸟家庭用户了,你爱买不买\u003Cbr\u003E既然这样,我觉得还是不买,不给他添麻烦',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 09:09:21',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89215,num:8,uid:16033,content:'既然注重隐私,就不用考虑绿联了吧',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 09:23:35',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89216,num:9,uid:1368,content:'2800 要 1800 ?我的 4800 才 1500+,目前用起来还可以',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 10:10:33',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89217,num:10,uid:649,content:'大家是不是又忘了去年绿联 NAS 的骚操作? 还有人推荐绿联吗,特别是注重隐私和稳定的用户,应该看见这个牌子就绕道走了吧。\u003Cbr\u003E\u003Cbr\u003E最近绿联宣传又开始发力了,广告和商单都很多,我在 B 站一个 UP 分享的绿联 NAS 使用体验的视频下,评论了一句先了解下去年绿联的骚操作,就给我评论删掉了。\u003Cbr\u003E\u003Cbr\u003E要是做 NAS 的心思有宣传的一半用心,何至于此。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 10:12:58',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89218,num:11,uid:16034,content:'绿联 刷 TrueNAS docker 实现要的服务器',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 10:17:27',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89219,num:12,uid:14490,content:'绿联还行了现在,比去年 6 月好太多',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:07:58',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89220,num:13,uid:16032,content:'啊?是我搜索的方式有问题吗?我在京东搜 DXP2800 算上国补也要 1500 了。DXP4800 算国补也要 1800 了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:10:43',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89221,num:14,uid:16032,content:'老哥方便展开讲讲吗?我之前没有关注过 NAS 相关的新闻',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:13:24',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[26,],mentionUsers:[],likeUsers:[],},{id:89222,num:15,uid:649,content:'V2 站内搜一搜就知道了,包括但不限于升级新系统不兼容老系统,老系统数据需要全部清零才能升级;系统 BUG 特别多一万个人吐槽。\u003Cbr\u003E\u003Cbr\u003E当然这都是以前的帖子,不代表现在绿联 NAS 的情况,我本人也从来没用过这些国产 NAS 品牌,不具有太多参考价值。\u003Cbr\u003E\u003Cbr\u003Eref:\u003Cbr\u003E\u003Cbr\u003Ehttps://www.v2ex.com/t/1046482\u003Cbr\u003Ehttps://v2ex.com/t/1046399\u003Cbr\u003Ehttps://www.v2ex.com/t/1021796',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:24:01',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89223,num:16,uid:2263,content:'严格来说,注重隐私,轻度使用,追求省心,这几点结合起来就很难推荐群晖以外的品牌。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:30:23',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89224,num:17,uid:16035,content:'收个二手白群吧,二手的 4 盘位也就 1800 不到,还稳定',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:31:41',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89225,num:18,uid:16032,content:'请问老哥也是在京东搜的吗?我这里搜出来 DS224+不带盘要 2850 了...',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 11:33:40',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:89226,num:19,uid:149,content:'现在看自营是这样,第三方商家都在 2200 左右,之前自营都在 2100 多。并且 225+马上出来了 224+ 也会更低,不介意可以入二手 224+ 大概 2000 以内了',ipRegion:'',updatedByUid:0,createdAt:'2025-03-29 12:00:20',updatedAt:'2025-04-01 12:02:54',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[149,{uid:149,url:'/u/1d280a246a045c77616e5f6f052b1708',avatar:'/a/1d280a246a045c77616e5f6f052b1708',username:'alfawei🤖',}],[16033,{uid:16033,url:'/u/370250296a045d716069556f002e173e',avatar:'/a/370250296a045d716069556f002e173e',username:'d**ehandong🤖',}],[2462,{uid:2462,url:'/u/18227c546a045c75646c546f44582130',avatar:'/a/18227c546a045c75646c546f44582130',username:'damichifan🤖',}],[3692,{uid:3692,url:'/u/3101741f6a045c746663546f3b5d1426',avatar:'/a/3101741f6a045c746663546f3b5d1426',username:'mosfet🤖',}],[16034,{uid:16034,url:'/u/377948066a045d716069526f15391d76',avatar:'/a/377948066a045d716069526f15391d76',username:'hymzhek🤖',}],[985,{uid:985,url:'/u/150f0a296a045c776962536f050d1570',avatar:'/a/150f0a296a045c776962536f050d1570',username:'dilidilid🤖',}],[16032,{uid:16032,url:'/u/6a04675f6a045d716069546f145f342c',avatar:'/a/6a04675f6a045d716069546f145f342c',username:'AnonymouSam🤖',}],[649,{uid:649,url:'/u/172c572c6a045c77666e5f6f450f251f',avatar:'/a/172c572c6a045c77666e5f6f450f251f',username:'Greenm🤖',}],[14490,{uid:14490,url:'/u/6a07470c6a045d736463566f321b6231',avatar:'/a/6a07470c6a045d736463566f321b6231',username:'Jeanslike🤖',}],[1368,{uid:1368,url:'/u/2c01403f6a045c76636c5e6f39136134',avatar:'/a/2c01403f6a045c76636c5e6f39136134',username:'FakerLeung🤖',}],[11935,{uid:11935,url:'/u/0e1364376a045d766969536f052f1a1d',avatar:'/a/0e1364376a045d766969536f052f1a1d',username:'wizardyhnr🤖',}],[730,{uid:730,url:'/u/192a550b6a045c776769566f19251a31',avatar:'/a/192a550b6a045c776769566f19251a31',username:'zololiu🤖',}],[11107,{uid:11107,url:'/u/1d017d396a045d76616a516f42211b2b',avatar:'/a/1d017d396a045d76616a516f42211b2b',username:'Theycn🤖',}],[2263,{uid:2263,url:'/u/102a5c226a045c75626c556f001c610d',avatar:'/a/102a5c226a045c75626c556f001c610d',username:'HojiOShi🤖',}],[2760,{uid:2760,url:'/u/2d1c0b0b6a045c75676c566f3f023c02',avatar:'/a/2d1c0b0b6a045c75676c566f3f023c02',username:'noisay🤖',}],[16035,{uid:16035,url:'/u/2e10541d6a045d716069536f3f0f1e72',avatar:'/a/2e10541d6a045d716069536f3f0f1e72',username:'8cbx🤖',}],]),related:[{title:'回顾 2024 年及以前你入手的迷你主机',url:'/d/690846086a045c77606a567a4551616a542d3d03',},{title:'玩 NAS 的人到底是被它的什么吸引了?',url:'/d/3c3150186a045c77606a567a455a6b6a2d2d323e',},{title:'晚上睡觉大家是否被光猫/路由器/Nas 的网口灯闪烁困扰?',url:'/d/3b1146396a045c77606a567a4758666a09083117',},{title:'ts-464c 便宜不',url:'/d/3633045e6a045c77606a5675425d666a3c2c2514',},{title:'寻找一款支持 SSD 的 NAS 升级现有 DS218+',url:'/d/6f7a412e6a045c77606a5675445b636a3412231a',},{title:'发几个馒头药',url:'/d/037e7c2b6a045c77606a5675455b666a3e042321',},{title:'qnap 威联通 nas 是我用过最难用的 nas,谨慎避坑',url:'/d/1b0a763a6a045c77606a5675475e646a1d112a63',},{title:'Nas 求推荐 少折腾、备份文件、至少 8t、不算盘 3000 左右',url:'/d/363150086a045c77606a5675475d6a6a2f160125',},{title:'小体积低功耗+ECC 内存的 NAS 有没有解',url:'/d/1d3a6a556a045c77606a5675475b606a08131522',},{title:'n150 的性能是物理飞牛还是虚拟飞牛?',url:'/d/220f56596a045c77606a56744e59626a20310b37',},{title:'[求] NAS 备份盘推荐🙏',url:'/d/127b035b6a045c77606a56744f5c646a1a0c6667',},{title:'没有 nas, win10 电脑里的片,能刮削么?',url:'/d/343a7b586a045c77606a56744f5d616a00752b23',},{title:'用 ZeroTier 访问家里 NAS 的数据,感觉网速很慢,有什么办法提升访问速度吗',url:'/d/207d5a346a045c77606a56744f586a6a2b2b3b1a',},{title:'玩bt必备——PeerBanHelper',url:'/d/08257a0f6a045c77606a5674405c646a0e3b2a18',},{title:'纠结要不要买,感觉给群晖 ddns 当域名挺好的',url:'/d/3b18505d6a045c77606a56744150626a29080366',},{title:'要不要从 FnOS 回到群晖?',url:'/d/2b2d581b6a045c77606a567441596b6a59306300',},{title:'6 路监控摄像头 存储到 nas 有什么好的方案吗?',url:'/d/140b5b0a6a045c77606a56744159616a15243433',},{title:'群晖 NAS DS920+如何实现在 iPad 上任何格式视频都能播放的效果?目前很多视频播放不了。',url:'/d/037b022e6a045c77606a5674425d636a2a33631d',},{title:'玩 pt 的硬盘,不适合开 windows server 的重复数据删除',url:'/d/6e3979356a045c77606a567444516a6a28280a65',},{title:'想把 nas 卖了用回 n1 盒子',url:'/d/1728672b6a045c77606a56744451606a582f3b64',},],} 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")