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:7060,currentPage:1,targetPage:1,total:22,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:27,url:'/t/0e2e58346a045c7567770b2b3120',name:'Go',color:'#FFA726',icon:'mdi-language-go',},],posts:[{id:88895,num:0,uid:4224,content:'```\u003Cbr\u003E背景:我们是一个 J**a 系统,使用的是 xxljob ,最近使用 go 重构。\u003Cbr\u003E\u003Cbr\u003E注意:是 CTO 定下的基调,我无法改变这件事情。\u003Cbr\u003E\u003Cbr\u003E我们在调研 go 时,没有发现好用的定时任务框架,xxljob-go 也是很久没更新了。\u003Cbr\u003E\u003Cbr\u003E```',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 11:49:42',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88896,num:1,uid:15982,content:'https://github.com/ouqiang/gocron\u003Cbr\u003E\u003Cbr\u003E这个应该够用 简单方便',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 11:59:44',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[5,],mentionUsers:[],likeUsers:[],},{id:88897,num:2,uid:4224,content:'非常感谢推荐~\u003Cbr\u003E\u003Cbr\u003E正在寻找一个企业级的分布式任务调度框架,hhhh',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 12:14:22',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88898,num:3,uid:7933,content:'大道至简\u003Cbr\u003E全靠手搓',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 12:26:18',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88899,num:4,uid:6857,content:'asynq 挺好用的',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 12:33:57',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88900,num:5,uid:4506,content:'#1 我最开始用本地 corn ,觉得功能不够用切到了 gocron ,还是觉得不够用,现在已经切到 k3s cronjob 了……\u003Cbr\u003E宇宙的尽头是 k8s',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:01:51',updatedAt:'2025-04-01 12:02:36',mentionNum:1,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88901,num:6,uid:10759,content:'歪个楼,cto 咋想的要用 go 重构...',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:08:34',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88902,num:7,uid:15983,content:'我们也在用 xxlgo 目前没找到没其他替代的',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:13:48',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88903,num:8,uid:15984,content:'最近也在用 xxlgo ,',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:18:19',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88904,num:9,uid:855,content:'干嘛要分布式,搞这么复杂',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:24:51',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88905,num:10,uid:15984,content:'装 B ,我们公司就是,服务架构的很**,用的配件看起来很高级,',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 13:31:55',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88906,num:11,uid:7021,content:'\u0026gt; 大道至简\u003Cbr\u003E\u0026gt; 全靠手搓\u003Cbr\u003E\u003Cbr\u003E#3\u003Cbr\u003E\u003Cbr\u003Ej**a 1995 年诞生之初就啥都有吗?一个语言的基础设施和生态是无数开发者手搓出来的,虽然不需要 curd 自己手搓、但也需要时间发展,go 还很年轻,如果能有团队站出来添砖加瓦,至少我觉得是好事情。\u003Cbr\u003EOP 家的 CTO 让 OP 他们做 go 版本的两面看:\u003Cbr\u003E1. 如果团队能力 ok 能做好那是好事情、如果开源我去 star ;\u003Cbr\u003E2. 如果团队实力不足以做好那是 CTO 自己装逼了。\u003Cbr\u003E现在只是开头,不了解 OP 团队实力、没看到过程和结果,我不妄加评论,但是希望 OP 加油,这是个提升自己的好机会。\u003Cbr\u003E\u003Cbr\u003E有人可能反驳、xxljob 现成的来为啥要重复造轮子、没必要 go 或者 rust 手搓,那请自己看看 j**a 的这些被大家用来重复造轮子的原版和新轮子的性能、硬件开销的对比去吧,但凡如果只提升了 5%那这种重复轮子都是浪费时间,但很可惜、每个新的好轮子都不只是这点提升。\u003Cbr\u003E另外,很多中小团队,希望避免过多技术栈的引入来保持精简干净,go 的部署也更容易,相比于还要先学习研究下 j**a 环境各种,如果有 go 自己的轮子,go 开发自己把 devops 的活也干得更轻松开心些。\u003Cbr\u003E\u003Cbr\u003E大道至简从来不是个坏事情,不喜欢的人不懂得把工程搞扎实、但喜欢的人多了去了。\u003Cbr\u003E就说 v 站吧,你看看 go 的帖子频率怎样?你门以为越骂越火是因为被骂火的、像娱乐圈一样吗?\u003Cbr\u003E很显然不是,而是因为很多喜欢 go 的人不善于归纳总结和反驳因为这需要理中客和技术深度、这样的文字更具难度,这些人在踏踏实实用 go 做事发声少罢了。\u003Cbr\u003E但相比之下,嘲讽起哄非常容易、加之跟风的心理学作祟,所以显得骂声很多罢了。\u003Cbr\u003E喜欢的人越来越多,所以 go 的份额也在增长和企稳,骂 go 的声音就类似于幸存者偏差。\u003Cbr\u003E\u003Cbr\u003E自己不给社区添砖加瓦没关系因为这从来不是必须,如果能输出好的技术观点骂到点子上那也是好的技术交流,但如果只是无脑嘲讽,并不能抬高自己,一点都不高尚。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:02:37',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88907,num:12,uid:7021,content:'强烈支持 Gopher 造轮子,能造好皆大欢喜、社区基础设施越来越丰富,即使造不好就当学习练手了、而且造不好大家不用就是了也没什么损失。\u003Cbr\u003E先不说 CTO 是不是装逼,就从这个层面支持团队造轮子我就先支持一票!业余时间为爱发电精力有限太辛苦,有这种支持带薪造轮子是多好的事情啊!很多人羡慕还来不及呢!',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:04:42',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88908,num:13,uid:7021,content:'\u0026gt; 背景:我们是一个 J**a 系统,使用的是 xxljob ,最近使用 go 重构。\u003Cbr\u003E\u003Cbr\u003E刚才没仔细看,以为是要再造个 go 版的 xxljob 。但是不影响#11 #12 总体观点,补充:不只支持 Gopher 造轮子,也支持适合的项目用 go 重构!尤其那些内存怪,尤其那些换 go 重构之后硬件占用大幅降低的!',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:07:11',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88909,num:14,uid:10550,content:'试试 dagu ,但是简陋到连登录啥的都省了,可以二开做一些事情\u003Cbr\u003Ehttps://github.com/dagu-org/dagu',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:13:47',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88910,num:15,uid:14,content:'xxljob go 不更新也不影响你使用啊,又不是有什么 bug ,执行器本来功能就不多,如果一直更新说明调整多,升级反而麻烦',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:15:16',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88911,num:16,uid:15985,content:'之前看到得物写过一篇他们内部用的定时任务,看着挺好的,可惜没有开源',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:28:55',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88912,num:17,uid:3078,content:'k8s 了你还是得考虑跨集群的 DR 还有混合云。。。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 14:31:27',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88913,num:18,uid:15986,content:'以前我会觉得这种重复造轮子不是好的方式。现在不这么觉得了,有事“折腾”是好事。',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 18:39:26',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:88914,num:19,uid:14070,content:'temporal 也有定时任务功能,不知道你们有没有调研',ipRegion:'',updatedByUid:0,createdAt:'2025-03-30 20:20:26',updatedAt:'2025-04-01 12:02:36',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[4506,{uid:4506,url:'/u/3b2c761b6a045c73656a506f0e33000e',avatar:'/a/3b2c761b6a045c73656a506f0e33000e',username:'marquina🤖',}],[10550,{uid:10550,url:'/u/6d05503d6a045d77656f566f191b6b77',avatar:'/a/6d05503d6a045d77656f566f191b6b77',username:'JerryYuan🤖',}],[7933,{uid:7933,url:'/u/0a01590e6a045c706969556f04582628',avatar:'/a/0a01590e6a045c706969556f04582628',username:'tongbufu🤖',}],[14,{uid:14,url:'/u/692861286a045c77606b526f3e033677',avatar:'/a/692861286a045c77606b526f3e033677',username:'FrankAdler🤖',}],[15982,{uid:15982,url:'/u/3f300b386a045d726962546f2f1f640c',avatar:'/a/3f300b386a045d726962546f2f1f640c',username:'sciel🤖',}],[4224,{uid:4224,url:'/u/200c7b5b6a045c736268526f105b0114',avatar:'/a/200c7b5b6a045c736268526f105b0114',username:'RedBeanIce🤖',}],[15986,{uid:15986,url:'/u/03315f2a6a045d726962506f0d071b3f',avatar:'/a/03315f2a6a045d726962506f0d071b3f',username:'banzige🤖',}],[6857,{uid:6857,url:'/u/1d2665276a045c71686f516f380c052b',avatar:'/a/1d2665276a045c71686f516f380c052b',username:'laikick🤖',}],[14070,{uid:14070,url:'/u/027e40026a045d73606d566f4e2f030e',avatar:'/a/027e40026a045d73606d566f4e2f030e',username:'matrix1010🤖',}],[3078,{uid:3078,url:'/u/2f2d7f356a045c74606d5e6f000b1612',avatar:'/a/2f2d7f356a045c74606d5e6f000b1612',username:'zhleonix🤖',}],[15985,{uid:15985,url:'/u/0d28671b6a045d726962536f05001a30',avatar:'/a/0d28671b6a045d726962536f05001a30',username:'joey9696🤖',}],[15983,{uid:15983,url:'/u/171b59016a045d726962556f1b221d0d',avatar:'/a/171b59016a045d726962556f1b221d0d',username:'waising🤖',}],[15984,{uid:15984,url:'/u/0e06052f6a045d726962526f03256215',avatar:'/a/0e06052f6a045d726962526f03256215',username:'lixikei🤖',}],[7021,{uid:7021,url:'/u/2903781d6a045c706068576f0d2a1911',avatar:'/a/2903781d6a045c706068576f0d2a1911',username:'lesi**al🤖',}],[10759,{uid:10759,url:'/u/35390b176a045d77676f5f6f3003100b',avatar:'/a/35390b176a045d77676f5f6f3003100b',username:'flyqie🤖',}],[855,{uid:855,url:'/u/2a1e585d6a045c77686f536f201c2911',avatar:'/a/2a1e585d6a045c77686f536f201c2911',username:'IDAEngine🤖',}],]),related:[{title:'大佬们平时都是怎样调试查看变量变化的? go 有哪些方便实时展示变量的库或工具?',url:'/d/221f67216a045c77606a567a455c636a23050963',},{title:'Cursor Go 开发,有哪些必装的插件?',url:'/d/337a733f6a045c77606a56754f5b6b6a39061e13',},{title:'在 Go 项目里,涉及到金额计算,大家一般用什么方式?',url:'/d/30267d146a045c77606a5675425d606a3f732227',},{title:'[全职]广州 - 潮汐 App - Golang 开发工程师',url:'/d/022a75356a045c77606a5675445d666a3b301504',},{title:'goland 如何远程开发?',url:'/d/1e1845056a045c77606a56754550676a29726b65',},{title:'开发了一个开箱即用的本地终端 Ztty',url:'/d/0c045a2e6a045c77606a5675455e6b6a3e200734',},{title:'go 部署到 1panel 上,是用源码运行 还是编译二进制运行!',url:'/d/193a435c6a045c77606a5675455c626a38360005',},{title:'关于 Go 并发获取数据的问题,请教大家',url:'/d/687d67226a045c77606a5674415b646a1d3a3138',},{title:'macOS Goland 经常在双击 shift 全局搜索的时候,出现彩虹球,只能强制退出',url:'/d/380f58206a045c77606a5674435b666a15111c2a',},{title:'今天有个面试官和我讲 go 的协程比系统的线程更慢,这个我不能理解',url:'/d/182459046a045c77606a56744359626a1412041a',},{title:'Java 和 go 都会,以后找工作偏向哪个方面好呢',url:'/d/000b7b1b6a045c77606a5674445e656a1977262a',},{title:'作为一个传统开发者,如何使用 ai 或者机器学习实现一些简单事情',url:'/d/34015f186a045c77606a5674445e626a25016611',},{title:'大家 golang 项目里目前在用哪个 log 库打印日志呢?',url:'/d/623a67086a045c77606a5674455c646a5d0c1f65',},{title:'朋友们,有哪些基于 Gin 框架的优秀开源项目,用来学习?',url:'/d/28116a596a045c77606a5674455d656a3c326135',},{title:'新手提问, Go 作为一个 GC 语言,为什么要设计成带指针类型的呢?',url:'/d/12067f176a045c77606a5674455b626a072a2734',},{title:'做个调研, go 语言,大家在用哪个 http 请求库?',url:'/d/337155556a045c77606a5674475a646a262a0b10',},{title:'[golang] 后端开发工程师|海外电商 AI+ SaaS 招长期远程兼职/全职',url:'/d/1d277d2a6a045c77606a5677425b616a1a211a39',},{title:'仓颉编程语言的这个反序列化和序列化比 go 复杂好多',url:'/d/361d472b6a045c77606a567745506b6a5a1a6160',},{title:'作为 Java 狗的我,学习 rust 的时候为啥总念着 go 的好呢?',url:'/d/6f2a02176a045c77606a5671435d636a2f121465',},{title:'原 Java 刚学习 go, 自己在写项目, 针对 go 日志方面的疑惑',url:'/d/6b2c02596a045c77606a56714359626a0f361626',},],} 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")