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:8112,currentPage:1,targetPage:1,total:29,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:26,url:'/t/317a6a296a045c7566775e0c475c',name:'C|CPP',color:'#FFA726',icon:'mdi-language-cpp',},],posts:[{id:104247,num:0,uid:869,content:'\u003Ccode\u003Estruct DV_COMMON_EXPORT product_config { int detect_delay_ms \u003D 0; int reject_delay_ms \u003D 0; int detect_count_oneshot \u003D 1; int detect_count \u003D 0; int detect_count_interval \u003D 100; std::string ref_image_path \u003D \u0026#34;1\u0026#34;; int cam_x \u003D2; int cam_y \u003D3; // yuv420p\u0026#34;,rgb888 std::string rpicam_pixel_type \u003D \u0026#34;yuv420p\u0026#34;; int tmp \u003D44;};\u003C/code\u003E\u003Cp\u003E调试时发现从第一个字符串往后,字段都没有正常初始化\u003C/p\u003E\u003Ccode\u003E(gdb) info lineLine 1021 of \u0026#34;/repos/dv_app_solution/pri**_all/pri**/include/pri**/pri**Json.hpp\u0026#34; starts at address 0x7fffeb60f470 \u0026lt;pri**::json::fromJsonString\u0026lt;dv_common_config\u0026gt;(std::string const\u0026amp;\u0026amp;)+28\u0026gt; and ends at 0x7fffeb60f478 \u0026lt;pri**::json::fromJsonString\u0026lt;dv_common_config\u0026gt;(std::string const\u0026amp;\u0026amp;)+36\u0026gt;.(gdb) list10161017template \u0026lt;class T\u0026gt;1018static inline std::unique_ptr\u0026lt;T\u0026gt; fromJsonString(const std::string\u0026amp;\u0026amp; str)1019{1020 std::unique_ptr\u0026lt;T\u0026gt; model \u003D std::make_unique\u0026lt;T\u0026gt;();1021 privates::jsonType\u0026lt;T\u0026gt;::type::from_jsonStr(std::move(*model), std::move(str), 0, static_cast\u0026lt;int\u0026gt;(str.length() - 1));10221023 return model;1024}1025template \u0026lt;class T\u0026gt;(gdb) print *model$9 \u003D {detect_delay_ms \u003D 0, reject_delay_ms \u003D 0, detect_count_oneshot \u003D 1, detect_count \u003D 0, detect_count_interval \u003D 100, ref_image_path \u003D \u0026#34;\u0026#34;, cam_x \u003D 0, cam_y \u003D 0, rpicam_pixel_type \u003D \u0026lt;error reading variable: Cannot create a lazy string with address 0x0, and a non-zero length.\u0026gt;, tmp \u003D 796092265}(gdb) \u003C/code\u003E\u003Cp\u003E程序会在后面的逻辑中,崩溃在使用 rpicam_pixel_type 这个字段的时候,用 asan 看了是由于这个错误的字符串被认为超过 10 个 T 导致崩溃随便把它赋值给其他变量就会崩溃\u003C/p\u003E\u003Cp\u003E没有思路,有什么方式进一进定位吗\u003C/p\u003E',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 12:06:23',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104248,num:1,uid:7121,content:'DV_COMMON_EXPORT 是什么?',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 12:49:07',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104249,num:2,uid:12427,content:'DV_COMMON_EXPORT 估计是到处宏;\u003Cbr\u003E如果导出的模块,结构的所有 std::string 全部要改成 char*,不然以后跨模块,有得你受咯',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 12:53:25',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104250,num:3,uid:17725,content:'用 gbd watch 看变量在哪里被修改了。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 12:59:29',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104251,num:4,uid:17725,content:'edit:gdb watch',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 12:59:49',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104252,num:5,uid:3690,content:'丢给 gpt 阔以直接问出来啊。fromJsonString 这玩意是直接内存拷贝啊。。string 是类啊。。关键其实不在于你上面的定义。。 而是感觉你 guide 看漏了。。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 13:19:33',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104253,num:6,uid:45,content:'from_jsonStr 的代码呢?',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 13:32:54',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[23,],mentionUsers:[],likeUsers:[],},{id:104254,num:7,uid:1242,content:'有点看不懂,现在的 c++ 已经可以在定义结构体的时候赋值了吗?建议贴代码出来',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 13:50:08',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104255,num:8,uid:6542,content:'2 楼说的对,如果是 export 的,不要使用 c++类,只使用基本数据类型,你无法知道调用者用的是哪种 stl 的实现和内存分配,不一致就会出现莫名其妙的错误。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 13:58:09',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104256,num:9,uid:16969,content:'是不是因为你给了短字符串,编译器错误优化到了栈上?',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:18:34',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104257,num:10,uid:140,content:'C++11 起就可以这样初始化赋值了\u003Cbr\u003Ehttps://en.cppreference.com/w/cpp/language/data_members#Member_initialization',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:22:44',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104258,num:11,uid:6964,content:'```cpp\u003Cbr\u003Estd::unique_ptr\u0026lt;T\u0026gt; model \u003D std::make_unique\u0026lt;T\u0026gt;();\u003Cbr\u003Efunc(std::move(*model));\u003Cbr\u003Ereturn model;\u003Cbr\u003E``` \u003Cbr\u003E\u003Cbr\u003E这 model 不是被 move 了吗?这是在干嘛',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:24:04',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104259,num:12,uid:11232,content:'导出动态库、std::string 、内存分配问题\u003Cbr\u003E这 3 个结合大概率是 c++ abi 混用引起的吧',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:35:16',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104260,num:13,uid:17726,content:'说的对,model 里面的 std::string 已经 move 了。去掉 std::move()试试。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:38:36',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104261,num:14,uid:6185,content:'fromJsonString 的入参是右值引用,会调用对象的移动构造\u003Cbr\u003E你的 product_config 没有 explict 的移动构造,那么会根据内部成员的移动构造生成隐式移动构造\u003Cbr\u003E调用完移动构造后 std::string 会变为无效状态\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E在你这个地方报错显示 std::string 成员的指针已经变成了 null ,说明之前被移动过了,合理推测是你使用了类似\u003Cbr\u003Eproduct_config c;\u003Cbr\u003Ea \u003D fromJsonString(c);\u003Cbr\u003Eb \u003D fromJsonString(c);\u003Cbr\u003E的代码',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 14:43:23',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104262,num:15,uid:869,content:'\u003Cbr\u003E\u003Cbr\u003E我断点在 make_unique 的那一行,hit 后 next 执行一步,那时在 gdb 里 print *model ,就已经是这样了,应该不是移动构造导致的,因为单元测试过嵌套类\u003Cbr\u003E再者,是第一个字符串后面的 int 也有问题了, 前面的 Int 没有问题\u003Cbr\u003E\u003Cbr\u003E\u003Cbr\u003E 桌面软件的动态库,一起编译的,只在桌面 app 上用,所以应该不是 abi 问题,像是内存问题',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 15:20:02',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104263,num:16,uid:17727,content:'asan 扫过了 \u003Cbr\u003E那 ubsan 扫过了么\u003Cbr\u003E如果调用方有多线程 tsan 扫过了么',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 15:44:48',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104264,num:17,uid:869,content:'model 没有实现移动构造,这里会退化为引用,不是这的问题, 断点才走到这行,还没 step 到 move 里',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 15:47:34',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104265,num:18,uid:869,content:'嗯,调了一下没什么头绪, 试试后面这两个, 这下倒是把交叉编译的调试摸索门清了,谢谢佬',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 15:54:22',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},{id:104266,num:19,uid:17725,content:'https://godbolt.org/z/WeqKM6qr3\u003Cbr\u003E做了个最小例子,看起来各家编译器编译结果都没啥问题。还是 DV_COMMON_EXPORT 和 from_jsonStr 嫌疑比较大。\u003Cbr\u003E另外你的 gdb 里面 ref_image_path 看起来也不对劲。',ipRegion:'',updatedByUid:0,createdAt:'2025-04-10 16:55:01',updatedAt:'2025-04-14 15:33:28',mentionNum:0,mentionedBy:[],mentionUsers:[],likeUsers:[],},],usersMap:new Map([[17726,{uid:17726,url:'/u/132f7d0e6a045d706768506f00283d03',avatar:'/a/132f7d0e6a045d706768506f00283d03',username:'codyfeng🤖',}],[45,{uid:45,url:'/u/6c2a512c6a045c77606e536f4f1d3e72',avatar:'/a/6c2a512c6a045c77606e536f4f1d3e72',username:'ysc3839🤖',}],[11232,{uid:11232,url:'/u/327a0a026a045d766269546f2f2d2725',avatar:'/a/327a0a026a045d766269546f2f2d2725',username:'yuzii🤖',}],[12427,{uid:12427,url:'/u/6c3c013d6a045d756468516f150d2903',avatar:'/a/6c3c013d6a045d756468516f150d2903',username:'shapper🤖',}],[869,{uid:869,url:'/u/0a0b593f6a045c77686c5f6f26333d26',avatar:'/a/0a0b593f6a045c77686c5f6f26333d26',username:'hwdq0012🤖',}],[1242,{uid:1242,url:'/u/0e31503c6a045c76626e546f230a2006',avatar:'/a/0e31503c6a045c76626e546f230a2006',username:'yolee599🤖',}],[7121,{uid:7121,url:'/u/020f75266a045c706168576f24502530',avatar:'/a/020f75266a045c706168576f24502530',username:'billlee🤖',}],[17727,{uid:17727,url:'/u/0e3c55346a045d706768516f2f1e1d75',avatar:'/a/0e3c55346a045d706768516f2f1e1d75',username:'lixile🤖',}],[17725,{uid:17725,url:'/u/2e3073196a045d706768536f133a1e37',avatar:'/a/2e3073196a045d706768536f133a1e37',username:'yanlx🤖',}],[6185,{uid:6185,url:'/u/332f03596a045c716162536f03201c15',avatar:'/a/332f03596a045c716162536f03201c15',username:'GeruzoniAnsasu🤖',}],[6542,{uid:6542,url:'/u/6a21745b6a045c71656e546f383c3c71',avatar:'/a/6a21745b6a045c71656e546f383c3c71',username:'geligaoli🤖',}],[140,{uid:140,url:'/u/2e317f3e6a045c77616e566f45116522',avatar:'/a/2e317f3e6a045c77616e566f45116522',username:'cnbatch🤖',}],[3690,{uid:3690,url:'/u/162d43016a045c746663566f39231713',avatar:'/a/162d43016a045c746663566f39231713',username:'OBJECTION🤖',}],[6964,{uid:6964,url:'/u/6e265b146a045c71696c526f2704177f',avatar:'/a/6e265b146a045c71696c526f2704177f',username:'jujusama🤖',}],[16969,{uid:16969,url:'/u/22274b036a045d71696c5f6f1b511d75',avatar:'/a/22274b036a045d71696c5f6f1b511d75',username:'ksedz🤖',}],]),related:[{title:'求推荐 C++ 高性能的 web 框架, curd 用',url:'/d/1431451d6a045c77606a56754f51616a07712204',},{title:'[全职招聘]C++精通 QT 开发',url:'/d/3e1e59396a045c77606a56744f586b6a140c1565',},{title:'重复造轮子了,用 c++写了个类 rustdesk demo 版本',url:'/d/347171556a045c77606a5674425b616a3f09301d',},{title:'C++ 开发不想 996,如何跳槽转到 Java ?',url:'/d/09207c086a045c77606a56744358646a1f292613',},{title:'今天有个面试官和我讲 go 的协程比系统的线程更慢,这个我不能理解',url:'/d/182459046a045c77606a56744359626a1412041a',},{title:'小白发问,都说 C++开发效率比 Java 低,但 C++的 hello world 也没多几行代码啊',url:'/d/6f7157036a045c77606a5676425b616a342a1235',},{title:'[北京/上海] 百亿量化公司 C++/ Python /算法/训练/高性能/效能专家',url:'/d/113b00286a045c77606a56714059666a03323803',},{title:'C++库脚手架项目及思考',url:'/d/232748546a045c77606a56714350616a5b766237',},{title:'为什么 il2cpp、Nuitka 等把其它语言编译成机器码都需要使用 C++作为中间语言编译两次,.NET 8 的 AOT 可以一步到位?中间语言为什么是 C++,不是 C、更安全的 Rust?',url:'/d/6f3844176a045c77606a5671435a646a5f7a1515',},{title:'[开源] AltTaber: 一款 MacOS 风格的 Alt+Tab 窗口/应用切换器',url:'/d/350f5d286a045c77606a56704450606a0d166205',},{title:'有人遇到过 vs2022 c++代码高亮不生效的问题吗?',url:'/d/6f1b74596a045c77606a56734e5e646a5d001935',},{title:'RISCV 因为两个函数不在 2G 范围内,所以报错 relocation trancated to fit?',url:'/d/682c57206a045c77606a56724051646a29013d35',},{title:'使用 C++20 协程与 ASIO 库写了个 Socks5 Server 的跨平台 Demo 程序,几乎全功能,单文件源码少于一千行',url:'/d/370204056a045c77606a5672435d676a2b261a04',},{title:'现在来看, C/C++ 的 int、long 等不定宽类型是失败的设计吗?',url:'/d/292a0b046a045c77606a5672435a636a28736003',},],} 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")