[{"data":1,"prerenderedAt":9792},["ShallowReactive",2],{"docs-navigation-en":3,"mdc-d0lvp9-key":202,"docs--en-docs-api-api-plugin":223,"surround--en-docs-api-api-plugin":2972,"component-example-apiEndpointsExample":2975,"component-example-apiEndpointsImperativeExample":2978,"component-example-apiEndpointsRuntimeExample":2981,"component-example-apiAuthSessionExample":2984,"component-example-apiAuthProtectedExample":2987,"component-example-apiAuthUnauthorizedExample":2990,"component-example-apiAuthTokenInjectionExample":2993,"component-example-apiUnwrapExample":2996,"component-example-apiToastExample":2999,"-en-docs-api-api-plugin-description":3002,"component-example-apiEndpointsExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":3010,"component-example-apiEndpointsImperativeExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4128,"component-example-apiEndpointsRuntimeExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":4796,"component-example-apiAuthSessionExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":5102,"component-example-apiAuthProtectedExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":6308,"component-example-apiAuthUnauthorizedExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":6791,"component-example-apiAuthTokenInjectionExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":7095,"component-example-apiUnwrapExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":7696,"component-example-apiToastExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":8534},[4],{"title":5,"path":6,"stem":7,"children":8,"page":105},"Docs","\u002Fen\u002Fdocs","en\u002Fdocs",[9,49,106,144,178],{"title":10,"path":11,"stem":12,"children":13,"category":16,"description":16,"icon":48},"Getting Started","\u002Fen\u002Fdocs\u002Fgetting-started","en\u002Fdocs\u002F1.getting-started\u002F1.index",[14,18,23,28,33,38,43],{"title":15,"path":11,"stem":12,"category":16,"description":17},"Introduction",null,"Explore forms, data tables, components, and API integration in Movk Nuxt and choose a setup for Nuxt or Vue + Vite.",{"title":19,"path":20,"stem":21,"category":16,"description":22},"Installation","\u002Fen\u002Fdocs\u002Fgetting-started\u002Finstallation","en\u002Fdocs\u002F1.getting-started\u002F2.installation","Install and configure the Movk Nuxt module in a Nuxt 4 project.",{"title":24,"path":25,"stem":26,"category":16,"description":27},"Module Configuration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration","en\u002Fdocs\u002F1.getting-started\u002F3.configuration","Configure component prefix, theme colors, fonts, API endpoints, auth strategy, response parsing rules and Toast notification behavior.",{"title":29,"path":30,"stem":31,"category":16,"description":32},"Vue \u002F Vite","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fvue","en\u002Fdocs\u002F1.getting-started\u002F4.vue","Use Movk standalone components, theming and composables in a plain Vue + Vite project without Nuxt.",{"title":34,"path":35,"stem":36,"category":16,"description":37},"Theme System","\u002Fen\u002Fdocs\u002Fgetting-started\u002Ftheme","en\u002Fdocs\u002F1.getting-started\u002F5.theme","Manage colors, radius, icon sets and dark mode through module defaults, the ThemePicker component and the useTheme composable, with build-time font configuration.",{"title":39,"path":40,"stem":41,"category":16,"description":42},"Migrate to v2","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fmigration","en\u002Fdocs\u002F1.getting-started\u002F6.migration","Breaking changes to handle when upgrading from v1 to v2.",{"title":44,"path":45,"stem":46,"category":16,"description":47},"AI Integration","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fai","en\u002Fdocs\u002F1.getting-started\u002F7.ai","Help AI assistants understand Movk Nuxt through MCP, llms.txt and Skills.","i-lucide-square-play",{"title":50,"category":16,"description":16,"icon":51,"path":52,"stem":53,"children":54,"page":105},"Forms","i-lucide-square-pen","\u002Fen\u002Fdocs\u002Fauto-form","en\u002Fdocs\u002F2.auto-form",[55,60,65,70,75,80,85,90,95,100],{"title":56,"path":57,"stem":58,"category":16,"description":59},"Quickstart","\u002Fen\u002Fdocs\u002Fauto-form\u002Fquickstart","en\u002Fdocs\u002F2.auto-form\u002F1.quickstart","Learn the core design philosophy and basic usage of AutoForm.",{"title":61,"path":62,"stem":63,"category":16,"description":64},"Recipes","\u002Fen\u002Fdocs\u002Fauto-form\u002Frecipes","en\u002Fdocs\u002F2.auto-form\u002F10.recipes","Real-world AutoForm scenarios — login, grouped registration validation, multi-file upload and horizontal search form.",{"title":66,"path":67,"stem":68,"category":16,"description":69},"Field Types","\u002Fen\u002Fdocs\u002Fauto-form\u002Ffield-types","en\u002Fdocs\u002F2.auto-form\u002F2.field-types","Mapping of afz field types to controls and their configuration.",{"title":71,"path":72,"stem":73,"category":16,"description":74},"Objects and Arrays","\u002Fen\u002Fdocs\u002Fauto-form\u002Fobject-array","en\u002Fdocs\u002F2.auto-form\u002F3.object-array","Rendering and editing nested object and dynamic array fields.",{"title":76,"path":77,"stem":78,"category":16,"description":79},"Controls","\u002Fen\u002Fdocs\u002Fauto-form\u002Fcontrols","en\u002Fdocs\u002F2.auto-form\u002F4.controls","Map schema fields to Nuxt UI controls via the type field, or register and inject custom Vue components to extend form fields.",{"title":81,"path":82,"stem":83,"category":16,"description":84},"Metadata and Layout","\u002Fen\u002Fdocs\u002Fauto-form\u002Fmetadata-layout","en\u002Fdocs\u002F2.auto-form\u002F5.metadata-layout","Configure field properties through meta and arrange them with afz.layout.",{"title":86,"path":87,"stem":88,"category":16,"description":89},"Slots","\u002Fen\u002Fdocs\u002Fauto-form\u002Fslots","en\u002Fdocs\u002F2.auto-form\u002F6.slots","Customize AutoForm's header\u002Ffooter, field controls, before\u002Fafter field and layout content via named slots.",{"title":91,"path":92,"stem":93,"category":16,"description":94},"Reactivity and Submit","\u002Fen\u002Fdocs\u002Fauto-form\u002Freactive-submit","en\u002Fdocs\u002F2.auto-form\u002F7.reactive-submit","Reactive linkage between fields and form submission handling.",{"title":96,"path":97,"stem":98,"category":16,"description":99},"SearchForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fsearch-form","en\u002Fdocs\u002F2.auto-form\u002F8.search-form","A schema-driven, collapsible search form component.",{"title":101,"path":102,"stem":103,"category":16,"description":104},"useAutoForm","\u002Fen\u002Fdocs\u002Fauto-form\u002Fuse-auto-form","en\u002Fdocs\u002F2.auto-form\u002F9.use-auto-form","A composable for creating typed Zod schemas and managing AutoForm controls.",false,{"title":107,"path":108,"stem":109,"children":110,"category":16,"description":16,"icon":143},"DataTable","\u002Fen\u002Fdocs\u002Fdata-table","en\u002Fdocs\u002F3.data-table\u002F1.index",[111,113,118,123,128,133,138],{"title":15,"path":108,"stem":109,"category":16,"description":112},"A declarative data table based on TanStack Table, with column configuration, selection, expansion, tree data, pagination, load more and complete API reference.",{"title":114,"path":115,"stem":116,"category":16,"description":117},"Appearance","\u002Fen\u002Fdocs\u002Fdata-table\u002Fappearance","en\u002Fdocs\u002F3.data-table\u002F2.appearance","Component style overrides, pagination style overrides, stripe and borders, visual density, fit-content width, empty-cell placeholders and sticky header.",{"title":119,"path":120,"stem":121,"category":16,"description":122},"Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fcolumns","en\u002Fdocs\u002F3.data-table\u002F3.columns","Data column configuration — fixed columns, sorting, column pinning, column resize, text truncation, tooltips, visibility and functional per-column configuration.",{"title":124,"path":125,"stem":126,"category":16,"description":127},"Special Columns","\u002Fen\u002Fdocs\u002Fdata-table\u002Fspecial-columns","en\u002Fdocs\u002F3.data-table\u002F4.special-columns","Configuration for selection, index, row-pinning and actions columns — including tree selection strategies, dynamic button props and confirmation dialogs.",{"title":129,"path":130,"stem":131,"category":16,"description":132},"Rows & Interaction","\u002Fen\u002Fdocs\u002Fdata-table\u002Frows","en\u002Fdocs\u002F3.data-table\u002F5.rows","Row selection, expandable detail slot, click behaviors, dynamic row class\u002Fstyle, hover, context menu and imperative control.",{"title":134,"path":135,"stem":136,"category":16,"description":137},"Tree Data","\u002Fen\u002Fdocs\u002Fdata-table\u002Ftree","en\u002Fdocs\u002F3.data-table\u002F6.tree","Enable tree-mode tables via childrenKey — configure expansion, cascade selection strategies, indentation and read selection results.",{"title":139,"path":140,"stem":141,"category":16,"description":142},"Pagination & Load More","\u002Fen\u002Fdocs\u002Fdata-table\u002Fpagination","en\u002Fdocs\u002F3.data-table\u002F7.pagination","Client-side auto pagination, server-side manual pagination with loading state, and bottom-trigger load-more for infinite scroll.","i-lucide-table",{"title":145,"path":146,"stem":147,"children":148,"category":16,"description":16,"icon":177},"API","\u002Fen\u002Fdocs\u002Fapi","en\u002Fdocs\u002F4.api\u002F1.index",[149,152,157,162,167,172],{"title":150,"path":146,"stem":147,"category":16,"description":151},"Overview","Nuxt data-fetching fundamentals and the core concepts and architecture of the Movk Nuxt API system.",{"title":153,"path":154,"stem":155,"category":16,"description":156},"$api","\u002Fen\u002Fdocs\u002Fapi\u002Fapi-plugin","en\u002Fdocs\u002F4.api\u002F2.api-plugin","The enhanced $fetch instance created by the api.factory plugin, supporting auth injection, data unwrapping, business code checking and multi-endpoint switching.",{"title":158,"path":159,"stem":160,"category":16,"description":161},"Hooks","\u002Fen\u002Fdocs\u002Fapi\u002Fhooks","en\u002Fdocs\u002F4.api\u002F3.hooks","Extend API system behavior via Nuxt runtime hooks — global request interception, error handling and custom 401 logic.",{"title":163,"path":164,"stem":165,"category":16,"description":166},"useApiFetch","\u002Fen\u002Fdocs\u002Fapi\u002Fuse-api-fetch","en\u002Fdocs\u002F4.api\u002F4.use-api-fetch","An API request composable built on Nuxt useFetch, providing automatic authentication, business status code checking and Toast notifications.",{"title":168,"path":169,"stem":170,"category":16,"description":171},"Upload and Download","\u002Fen\u002Fdocs\u002Fapi\u002Fupload-download","en\u002Fdocs\u002F4.api\u002F5.upload-download","File upload and download with progress tracking.",{"title":173,"path":174,"stem":175,"category":16,"description":176},"Streaming","\u002Fen\u002Fdocs\u002Fapi\u002Fstream","en\u002Fdocs\u002F4.api\u002F6.stream","SSE streaming requests and the AI SDK chat transport.","i-lucide-cloud",{"title":179,"category":16,"description":16,"icon":180,"path":181,"stem":182,"children":183,"page":105},"Components","i-lucide-box","\u002Fen\u002Fdocs\u002Fcomponents","en\u002Fdocs\u002F5.components",[184,190,196],{"title":185,"path":186,"stem":187,"category":188,"description":189},"DatePicker","\u002Fen\u002Fdocs\u002Fcomponents\u002Fdate-picker","en\u002Fdocs\u002F5.components\u002Fdate-picker","advanced","An internationalized date picker component.",{"title":191,"path":192,"stem":193,"category":194,"description":195},"MessageBox","\u002Fen\u002Fdocs\u002Fcomponents\u002Fmessage-box","en\u002Fdocs\u002F5.components\u002Fmessage-box","feedback","A modal message dialog offering both declarative and programmatic usage.",{"title":197,"path":198,"stem":199,"category":188,"description":200,"badge":201},"Tree","\u002Fen\u002Fdocs\u002Fcomponents\u002Ftree","en\u002Fdocs\u002F5.components\u002Ftree","A tree component built on Nuxt UI Tree, adding search, lazy loading, toolbar, checkboxes, and parent\u002Fchild strategy.","v1.4.2",{"data":203,"body":204},{},{"type":205,"children":206},"root",[207],{"type":208,"tag":209,"props":210,"children":211},"element","p",{},[212,215],{"type":213,"value":214},"text","Copyright © 2025 - 2026 YiXuan - ",{"type":208,"tag":216,"props":217,"children":220},"span",{"className":218},[219],"text-highlighted",[221],{"type":213,"value":222},"MIT License",{"id":224,"title":153,"body":225,"category":16,"description":156,"difficulty":16,"extension":2967,"index":105,"keywords":16,"links":16,"meta":2968,"navigation":16,"path":154,"requires":16,"seo":2969,"sitemap":2970,"stem":155,"__hash__":2971},"docs_en\u002Fen\u002Fdocs\u002F4.api\u002F2.api-plugin.md",{"type":226,"value":227,"toc":2936},"minimark",[228,232,249,253,514,529,533,540,694,701,706,722,728,732,742,745,749,755,758,764,768,802,806,817,820,824,833,836,840,845,848,852,866,869,873,894,948,952,956,967,1056,1132,1149,1153,1162,1216,1229,1233,1237,1243,1511,1515,1524,1696,1700,1835,1839,1845,2100,2202,2206,2214,2342,2352,2395,2408,2412,2448,2564,2567,2571,2576,2682,2716,2719,2722,2770,2773,2878,2932],[229,230,15],"h2",{"id":231},"introduction",[209,233,234,237,238,241,242,244,245,248],{},[235,236,153],"code",{}," is a global ",[235,239,240],{},"$fetch"," instance injected by a Nuxt plugin, with a full built-in interceptor chain (auth injection, business status code checking, data unwrapping, Toast notifications). It is the underlying engine for all API composables (",[235,243,163],{},", ",[235,246,247],{},"useLazyApiFetch",", etc.).",[229,250,252],{"id":251},"usage","Usage",[254,255,260],"pre",{"className":256,"code":257,"language":258,"meta":259,"style":259},"language-ts shiki shiki-themes github-light github-light github-dark","const { $api } = useNuxtApp()\n\n\u002F\u002F GET request (data is automatically unwrapped)\nconst users = await $api\u003CUser[]>('\u002Fusers')\n\n\u002F\u002F POST request\nconst user = await $api\u003CUser>('\u002Fusers', {\n  method: 'POST',\n  body: { name: 'test', email: 'test@example.com' }\n})\n\n\u002F\u002F PUT request\nconst updated = await $api\u003CUser>(`\u002Fusers\u002F${id}`, {\n  method: 'PUT',\n  body: { name: 'new-name' }\n})\n\n\u002F\u002F DELETE request\nawait $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n","ts","",[235,261,262,290,297,304,337,342,348,374,386,404,410,415,421,452,462,472,477,482,488],{"__ignoreMap":259},[216,263,266,270,274,277,280,283,287],{"class":264,"line":265},"line",1,[216,267,269],{"class":268},"s8jYJ","const",[216,271,273],{"class":272},"sxrX7"," { ",[216,275,153],{"class":276},"sBjJW",[216,278,279],{"class":272}," } ",[216,281,282],{"class":268},"=",[216,284,286],{"class":285},"snPdu"," useNuxtApp",[216,288,289],{"class":272},"()\n",[216,291,293],{"class":264,"line":292},2,[216,294,296],{"emptyLinePlaceholder":295},true,"\n",[216,298,300],{"class":264,"line":299},3,[216,301,303],{"class":302},"sCsY4","\u002F\u002F GET request (data is automatically unwrapped)\n",[216,305,307,309,312,315,318,321,324,327,330,334],{"class":264,"line":306},4,[216,308,269],{"class":268},[216,310,311],{"class":276}," users",[216,313,314],{"class":268}," =",[216,316,317],{"class":268}," await",[216,319,320],{"class":285}," $api",[216,322,323],{"class":272},"\u003C",[216,325,326],{"class":285},"User",[216,328,329],{"class":272},"[]>(",[216,331,333],{"class":332},"sIIMD","'\u002Fusers'",[216,335,336],{"class":272},")\n",[216,338,340],{"class":264,"line":339},5,[216,341,296],{"emptyLinePlaceholder":295},[216,343,345],{"class":264,"line":344},6,[216,346,347],{"class":302},"\u002F\u002F POST request\n",[216,349,351,353,356,358,360,362,364,366,369,371],{"class":264,"line":350},7,[216,352,269],{"class":268},[216,354,355],{"class":276}," user",[216,357,314],{"class":268},[216,359,317],{"class":268},[216,361,320],{"class":285},[216,363,323],{"class":272},[216,365,326],{"class":285},[216,367,368],{"class":272},">(",[216,370,333],{"class":332},[216,372,373],{"class":272},", {\n",[216,375,377,380,383],{"class":264,"line":376},8,[216,378,379],{"class":272},"  method: ",[216,381,382],{"class":332},"'POST'",[216,384,385],{"class":272},",\n",[216,387,389,392,395,398,401],{"class":264,"line":388},9,[216,390,391],{"class":272},"  body: { name: ",[216,393,394],{"class":332},"'test'",[216,396,397],{"class":272},", email: ",[216,399,400],{"class":332},"'test@example.com'",[216,402,403],{"class":272}," }\n",[216,405,407],{"class":264,"line":406},10,[216,408,409],{"class":272},"})\n",[216,411,413],{"class":264,"line":412},11,[216,414,296],{"emptyLinePlaceholder":295},[216,416,418],{"class":264,"line":417},12,[216,419,420],{"class":302},"\u002F\u002F PUT request\n",[216,422,424,426,429,431,433,435,437,439,441,444,447,450],{"class":264,"line":423},13,[216,425,269],{"class":268},[216,427,428],{"class":276}," updated",[216,430,314],{"class":268},[216,432,317],{"class":268},[216,434,320],{"class":285},[216,436,323],{"class":272},[216,438,326],{"class":285},[216,440,368],{"class":272},[216,442,443],{"class":332},"`\u002Fusers\u002F${",[216,445,446],{"class":272},"id",[216,448,449],{"class":332},"}`",[216,451,373],{"class":272},[216,453,455,457,460],{"class":264,"line":454},14,[216,456,379],{"class":272},[216,458,459],{"class":332},"'PUT'",[216,461,385],{"class":272},[216,463,465,467,470],{"class":264,"line":464},15,[216,466,391],{"class":272},[216,468,469],{"class":332},"'new-name'",[216,471,403],{"class":272},[216,473,475],{"class":264,"line":474},16,[216,476,409],{"class":272},[216,478,480],{"class":264,"line":479},17,[216,481,296],{"emptyLinePlaceholder":295},[216,483,485],{"class":264,"line":484},18,[216,486,487],{"class":302},"\u002F\u002F DELETE request\n",[216,489,491,494,496,499,501,503,505,508,511],{"class":264,"line":490},19,[216,492,493],{"class":268},"await",[216,495,320],{"class":285},[216,497,498],{"class":272},"(",[216,500,443],{"class":332},[216,502,446],{"class":272},[216,504,449],{"class":332},[216,506,507],{"class":272},", { method: ",[216,509,510],{"class":332},"'DELETE'",[216,512,513],{"class":272}," })\n",[515,516,517,518,520,521,524,525,528],"note",{},"Data returned by ",[235,519,153],{}," has already been automatically unwrapped by the interceptor (the ",[235,522,523],{},"dataKey"," field is extracted); the generic ",[235,526,527],{},"T"," directly maps to the business data type.",[229,530,532],{"id":531},"multi-endpoint-switching","Multi-Endpoint Switching",[209,534,535,536,539],{},"Use ",[235,537,538],{},"$api.use(endpoint)"," to switch to a specific endpoint:",[254,541,543],{"className":256,"code":542,"language":258,"meta":259,"style":259},"const { $api } = useNuxtApp()\n\n\u002F\u002F Use the default endpoint\nconst users = await $api('\u002Fusers')\n\n\u002F\u002F Switch to the admin endpoint\nconst adminUsers = await $api.use('admin')('\u002Fusers')\n\n\u002F\u002F Save an endpoint reference to avoid repeated use() calls\nconst adminApi = $api.use('admin')\nconst config = await adminApi('\u002Fconfig')\nconst stats = await adminApi('\u002Fstats')\n",[235,544,545,561,565,570,588,592,597,626,630,635,654,674],{"__ignoreMap":259},[216,546,547,549,551,553,555,557,559],{"class":264,"line":265},[216,548,269],{"class":268},[216,550,273],{"class":272},[216,552,153],{"class":276},[216,554,279],{"class":272},[216,556,282],{"class":268},[216,558,286],{"class":285},[216,560,289],{"class":272},[216,562,563],{"class":264,"line":292},[216,564,296],{"emptyLinePlaceholder":295},[216,566,567],{"class":264,"line":299},[216,568,569],{"class":302},"\u002F\u002F Use the default endpoint\n",[216,571,572,574,576,578,580,582,584,586],{"class":264,"line":306},[216,573,269],{"class":268},[216,575,311],{"class":276},[216,577,314],{"class":268},[216,579,317],{"class":268},[216,581,320],{"class":285},[216,583,498],{"class":272},[216,585,333],{"class":332},[216,587,336],{"class":272},[216,589,590],{"class":264,"line":339},[216,591,296],{"emptyLinePlaceholder":295},[216,593,594],{"class":264,"line":344},[216,595,596],{"class":302},"\u002F\u002F Switch to the admin endpoint\n",[216,598,599,601,604,606,608,611,614,616,619,622,624],{"class":264,"line":350},[216,600,269],{"class":268},[216,602,603],{"class":276}," adminUsers",[216,605,314],{"class":268},[216,607,317],{"class":268},[216,609,610],{"class":272}," $api.",[216,612,613],{"class":285},"use",[216,615,498],{"class":272},[216,617,618],{"class":332},"'admin'",[216,620,621],{"class":272},")(",[216,623,333],{"class":332},[216,625,336],{"class":272},[216,627,628],{"class":264,"line":376},[216,629,296],{"emptyLinePlaceholder":295},[216,631,632],{"class":264,"line":388},[216,633,634],{"class":302},"\u002F\u002F Save an endpoint reference to avoid repeated use() calls\n",[216,636,637,639,642,644,646,648,650,652],{"class":264,"line":406},[216,638,269],{"class":268},[216,640,641],{"class":276}," adminApi",[216,643,314],{"class":268},[216,645,610],{"class":272},[216,647,613],{"class":285},[216,649,498],{"class":272},[216,651,618],{"class":332},[216,653,336],{"class":272},[216,655,656,658,661,663,665,667,669,672],{"class":264,"line":412},[216,657,269],{"class":268},[216,659,660],{"class":276}," config",[216,662,314],{"class":268},[216,664,317],{"class":268},[216,666,641],{"class":285},[216,668,498],{"class":272},[216,670,671],{"class":332},"'\u002Fconfig'",[216,673,336],{"class":272},[216,675,676,678,681,683,685,687,689,692],{"class":264,"line":417},[216,677,269],{"class":268},[216,679,680],{"class":276}," stats",[216,682,314],{"class":268},[216,684,317],{"class":268},[216,686,641],{"class":285},[216,688,498],{"class":272},[216,690,691],{"class":332},"'\u002Fstats'",[216,693,336],{"class":272},[209,695,696,697,700],{},"Endpoint instances are internally cached, so multiple calls to ",[235,698,699],{},"$api.use('admin')"," return the same instance.",[702,703,705],"h3",{"id":704},"switch-and-compare-baseurl","Switch and Compare baseURL",[209,707,708,710,711,714,715,718,719,721],{},[235,709,153],{}," uses the ",[235,712,713],{},"baseURL"," of the default endpoint; calling ",[235,716,717],{},"$api.use(name)"," switches to the named endpoint's ",[235,720,713],{},". Select a different endpoint in the dropdown to observe the baseURL and response change accordingly:",[723,724],"component-example",{"name":725,":options":726,":collapse":727},"ApiEndpointsExample","[{\"name\":\"endpoint\",\"label\":\"endpoint\",\"items\":[\"default\",\"v2\"],\"default\":\"default\"}]","true",[702,729,731],{"id":730},"imperative-usage","Imperative Usage",[209,733,734,735,738,739,741],{},"Outside a ",[235,736,737],{},"useFetch"," context, obtain an endpoint instance via ",[235,740,717],{}," and make raw requests directly:",[723,743],{"name":744},"ApiEndpointsImperativeExample",[702,746,748],{"id":747},"active-runtime-config","Active Runtime Config",[209,750,751,754],{},[235,752,753],{},"runtimeConfig.public.movkApi"," exposes the endpoint list and default endpoint name for runtime debugging:",[723,756],{"name":757},"ApiEndpointsRuntimeExample",[759,760,763],"tip",{"icon":761,"to":762},"i-lucide-settings","\u002Fen\u002Fdocs\u002Fgetting-started\u002Fconfiguration#endpoints","Learn how to configure multiple API endpoints",[229,765,767],{"id":766},"auth-integration","Auth Integration",[209,769,770,771,774,775,778,779,782,783,786,787,790,791,793,794,797,798,801],{},"When ",[235,772,773],{},"auth"," is enabled and ",[235,776,777],{},"tokenSource"," is ",[235,780,781],{},"'session'"," (default), the module automatically integrates with ",[235,784,785],{},"nuxt-auth-utils",": after login it reads the token from ",[235,788,789],{},"session[sessionTokenPath]"," and all ",[235,792,153],{}," requests automatically inject the ",[235,795,796],{},"Authorization"," header. On a 401 response, the ",[235,799,800],{},"auth.unauthorized"," strategy clears the session or redirects to the login page.",[702,803,805],{"id":804},"current-session","Current Session",[209,807,808,809,812,813,816],{},"The reactive session exposed by ",[235,810,811],{},"useUserSession","; call ",[235,814,815],{},"fetch()"," after login\u002Flogout to sync state:",[723,818],{"name":819,":collapse":727},"ApiAuthSessionExample",[702,821,823],{"id":822},"calling-a-protected-endpoint","Calling a Protected Endpoint",[209,825,826,828,829,832],{},[235,827,163],{}," automatically carries the Authorization header when accessing ",[235,830,831],{},"\u002Fdemo\u002Fprotected","; returns 401 when not logged in:",[723,834],{"name":835},"ApiAuthProtectedExample",[702,837,839],{"id":838},"_401-handling-strategy","401 Handling Strategy",[209,841,842,844],{},[235,843,800],{}," controls redirect and session clearing; this docs site disables redirect for demonstration purposes:",[723,846],{"name":847},"ApiAuthUnauthorizedExample",[702,849,851],{"id":850},"token-injection-format","Token Injection Format",[209,853,854,857,858,861,862,865],{},[235,855,856],{},"headerName"," + ",[235,859,860],{},"tokenType"," determine the final request header format; the backend echoes the ",[235,863,864],{},"authHeader"," field for verification:",[723,867],{"name":868},"ApiAuthTokenInjectionExample",[229,870,872],{"id":871},"data-unwrapping-and-business-validation","Data Unwrapping and Business Validation",[209,874,875,877,878,881,882,885,886,889,890,893],{},[235,876,153],{}," extracts business data by ",[235,879,880],{},"response.dataKey"," and validates the business code against ",[235,883,884],{},"successCodes"," by default. The ",[235,887,888],{},"unwrap"," \u002F ",[235,891,892],{},"businessCheck"," switches can be declared globally, per endpoint or per request, with precedence explicit request value > endpoint > global. Select a mode in the dropdown to observe the difference in the returned structure:",[895,896,897,908,926,942],"ul",{},[898,899,900,903,904,907],"li",{},[235,901,902],{},"default",": Extracts business data by the default ",[235,905,906],{},"data"," field; the caller receives the de-enveloped object directly.",[898,909,910,913,914,917,918,921,922,925],{},[235,911,912],{},"no-unwrap",": ",[235,915,916],{},"unwrap: false"," — does not overwrite ",[235,919,920],{},"response._data",", preserving the full ",[235,923,924],{},"code\u002Fmessage\u002Fdata"," envelope.",[898,927,928,931,932,934,935,938,939,941],{},[235,929,930],{},"no-business-check",": Legacy endpoints that don't return a ",[235,933,235],{}," field — ",[235,936,937],{},"businessCheck: false"," disables validation and still unwraps the business data by ",[235,940,523],{},".",[898,943,944,947],{},[235,945,946],{},"combined",": Non-standard external envelopes — disable both to let the caller handle the response entirely.",[723,949],{"name":950,":options":951},"ApiUnwrapExample","[{\"name\":\"mode\",\"label\":\"Mode\",\"items\":[\"default\",\"no-unwrap\",\"no-business-check\",\"combined\"],\"default\":\"default\"}]",[702,953,955],{"id":954},"endpoint-level-declaration","Endpoint-Level Declaration",[209,957,958,959,962,963,966],{},"Returning a bare array or object (no ",[235,960,961],{},"{ code, data }"," envelope) is an inherent property of an endpoint. Declare it once on the endpoint ",[235,964,965],{},"response",", and every request to that endpoint (including upload, download and streaming) follows it:",[254,968,971],{"className":256,"code":969,"filename":970,"language":258,"meta":259,"style":259},"export default defineNuxtConfig({\n  movk: {\n    api: {\n      endpoints: {\n        sensor: {\n          baseURL: process.env.NUXT_SENSOR_URL,\n          response: { businessCheck: false, unwrap: false }\n        }\n      }\n    }\n  }\n})\n","nuxt.config.ts",[235,972,973,987,992,997,1002,1007,1017,1032,1037,1042,1047,1052],{"__ignoreMap":259},[216,974,975,978,981,984],{"class":264,"line":265},[216,976,977],{"class":268},"export",[216,979,980],{"class":268}," default",[216,982,983],{"class":285}," defineNuxtConfig",[216,985,986],{"class":272},"({\n",[216,988,989],{"class":264,"line":292},[216,990,991],{"class":272},"  movk: {\n",[216,993,994],{"class":264,"line":299},[216,995,996],{"class":272},"    api: {\n",[216,998,999],{"class":264,"line":306},[216,1000,1001],{"class":272},"      endpoints: {\n",[216,1003,1004],{"class":264,"line":339},[216,1005,1006],{"class":272},"        sensor: {\n",[216,1008,1009,1012,1015],{"class":264,"line":344},[216,1010,1011],{"class":272},"          baseURL: process.env.",[216,1013,1014],{"class":276},"NUXT_SENSOR_URL",[216,1016,385],{"class":272},[216,1018,1019,1022,1025,1028,1030],{"class":264,"line":350},[216,1020,1021],{"class":272},"          response: { businessCheck: ",[216,1023,1024],{"class":276},"false",[216,1026,1027],{"class":272},", unwrap: ",[216,1029,1024],{"class":276},[216,1031,403],{"class":272},[216,1033,1034],{"class":264,"line":376},[216,1035,1036],{"class":272},"        }\n",[216,1038,1039],{"class":264,"line":388},[216,1040,1041],{"class":272},"      }\n",[216,1043,1044],{"class":264,"line":406},[216,1045,1046],{"class":272},"    }\n",[216,1048,1049],{"class":264,"line":412},[216,1050,1051],{"class":272},"  }\n",[216,1053,1054],{"class":264,"line":417},[216,1055,409],{"class":272},[254,1057,1059],{"className":256,"code":1058,"language":258,"meta":259,"style":259},"\u002F\u002F Receives the array directly\nconst points = await $api.use('sensor')\u003CSensorPoint[]>('\u002Fpoint-numbers')\n\n\u002F\u002F Explicit request values win: re-enable business-code checking for a single request\nawait $api.use('sensor')('\u002Flegacy', { businessCheck: true })\n",[235,1060,1061,1066,1099,1103,1108],{"__ignoreMap":259},[216,1062,1063],{"class":264,"line":265},[216,1064,1065],{"class":302},"\u002F\u002F Receives the array directly\n",[216,1067,1068,1070,1073,1075,1077,1079,1081,1083,1086,1089,1092,1094,1097],{"class":264,"line":292},[216,1069,269],{"class":268},[216,1071,1072],{"class":276}," points",[216,1074,314],{"class":268},[216,1076,317],{"class":268},[216,1078,610],{"class":272},[216,1080,613],{"class":285},[216,1082,498],{"class":272},[216,1084,1085],{"class":332},"'sensor'",[216,1087,1088],{"class":272},")\u003C",[216,1090,1091],{"class":285},"SensorPoint",[216,1093,329],{"class":272},[216,1095,1096],{"class":332},"'\u002Fpoint-numbers'",[216,1098,336],{"class":272},[216,1100,1101],{"class":264,"line":299},[216,1102,296],{"emptyLinePlaceholder":295},[216,1104,1105],{"class":264,"line":306},[216,1106,1107],{"class":302},"\u002F\u002F Explicit request values win: re-enable business-code checking for a single request\n",[216,1109,1110,1112,1114,1116,1118,1120,1122,1125,1128,1130],{"class":264,"line":339},[216,1111,493],{"class":268},[216,1113,610],{"class":272},[216,1115,613],{"class":285},[216,1117,498],{"class":272},[216,1119,1085],{"class":332},[216,1121,621],{"class":272},[216,1123,1124],{"class":332},"'\u002Flegacy'",[216,1126,1127],{"class":272},", { businessCheck: ",[216,1129,727],{"class":276},[216,1131,513],{"class":272},[515,1133,1134,1135,1138,1139,778,1142,1145,1146,941],{},"With checking enabled, a non-object response body (",[235,1136,1137],{},"null",", string, array, etc.) is treated as a business failure (",[235,1140,1141],{},"error.data.kind",[235,1143,1144],{},"business",") instead of throwing a ",[235,1147,1148],{},"TypeError",[229,1150,1152],{"id":1151},"toast-notifications","Toast Notifications",[209,1154,1155,1157,1158,1161],{},[235,1156,153],{}," has built-in Toast notifications, determining success\u002Ffailure by ",[235,1159,1160],{},"toast.successCodes",". Supports two levels of customization: global defaults and per-request overrides. Select a mode in the dropdown and toggle the \"inject error\" switch to observe the success\u002Ffailure branches:",[895,1163,1164,1173,1182,1194,1203],{},[898,1165,1166,1168,1169,1172],{},[235,1167,902],{},": No ",[235,1170,1171],{},"toast"," passed — inherits global config; both success and error use the default style.",[898,1174,1175,913,1178,1181],{},[235,1176,1177],{},"silent",[235,1179,1180],{},"toast: false"," — disables all per-request notifications.",[898,1183,1184,913,1187,889,1190,1193],{},[235,1185,1186],{},"message",[235,1188,1189],{},"successMessage",[235,1191,1192],{},"errorMessage"," replace the default text.",[898,1195,1196,913,1199,1202],{},[235,1197,1198],{},"error-only",[235,1200,1201],{},"{ success: false }"," — disables success notification but keeps error notification.",[898,1204,1205,1208,1209,244,1212,1215],{},[235,1206,1207],{},"custom",": Overrides ",[235,1210,1211],{},"color",[235,1213,1214],{},"icon"," and other ToastProps for success and error separately.",[515,1217,1218,1219,1222,1223,1226,1227,941],{},"Setting ",[235,1220,1221],{},"toast.success.methods"," in the global or endpoint config limits success notifications to mutating requests (POST \u002F PUT \u002F PATCH \u002F DELETE). A single GET can still opt back in with request-level ",[235,1224,1225],{},"{ success: { show: true } }"," or ",[235,1228,1189],{},[723,1230],{"name":1231,":options":1232},"ApiToastExample","[{\"name\":\"mode\",\"label\":\"Mode\",\"items\":[\"default\",\"silent\",\"message\",\"error-only\",\"custom\"],\"default\":\"default\"}]",[229,1234,1236],{"id":1235},"using-in-event-handlers","Using in Event Handlers",[209,1238,1239,1240,1242],{},"Using ",[235,1241,153],{}," inside event handlers is the most common scenario:",[254,1244,1248],{"className":1245,"code":1246,"language":1247,"meta":259,"style":259},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\n\u002F\u002F Form submission\nasync function handleCreate(formData: CreateUserRequest) {\n  try {\n    const user = await $api\u003CUser>('\u002Fusers', {\n      method: 'POST',\n      body: formData\n    })\n    \u002F\u002F Toast is shown automatically, no manual handling needed\n    navigateTo(`\u002Fusers\u002F${user.id}`)\n  }\n  catch (error) {\n    \u002F\u002F Business error Toast is shown automatically\n    \u002F\u002F Add extra logic here if needed (e.g. highlight form fields)\n  }\n}\n\n\u002F\u002F Delete confirmation\nasync function handleDelete(id: string) {\n  await $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n  await refreshNuxtData() \u002F\u002F Refresh page-cached data\n}\n\u003C\u002Fscript>\n","vue",[235,1249,1250,1272,1288,1292,1297,1323,1331,1354,1363,1368,1373,1378,1398,1402,1410,1415,1420,1424,1429,1433,1439,1460,1482,1496,1501],{"__ignoreMap":259},[216,1251,1252,1254,1258,1261,1264,1266,1269],{"class":264,"line":265},[216,1253,323],{"class":272},[216,1255,1257],{"class":1256},"sovSZ","script",[216,1259,1260],{"class":285}," setup",[216,1262,1263],{"class":285}," lang",[216,1265,282],{"class":272},[216,1267,1268],{"class":332},"\"ts\"",[216,1270,1271],{"class":272},">\n",[216,1273,1274,1276,1278,1280,1282,1284,1286],{"class":264,"line":292},[216,1275,269],{"class":268},[216,1277,273],{"class":272},[216,1279,153],{"class":276},[216,1281,279],{"class":272},[216,1283,282],{"class":268},[216,1285,286],{"class":285},[216,1287,289],{"class":272},[216,1289,1290],{"class":264,"line":299},[216,1291,296],{"emptyLinePlaceholder":295},[216,1293,1294],{"class":264,"line":306},[216,1295,1296],{"class":302},"\u002F\u002F Form submission\n",[216,1298,1299,1302,1305,1308,1310,1314,1317,1320],{"class":264,"line":339},[216,1300,1301],{"class":268},"async",[216,1303,1304],{"class":268}," function",[216,1306,1307],{"class":285}," handleCreate",[216,1309,498],{"class":272},[216,1311,1313],{"class":1312},"sP4rz","formData",[216,1315,1316],{"class":268},":",[216,1318,1319],{"class":285}," CreateUserRequest",[216,1321,1322],{"class":272},") {\n",[216,1324,1325,1328],{"class":264,"line":344},[216,1326,1327],{"class":268},"  try",[216,1329,1330],{"class":272}," {\n",[216,1332,1333,1336,1338,1340,1342,1344,1346,1348,1350,1352],{"class":264,"line":350},[216,1334,1335],{"class":268},"    const",[216,1337,355],{"class":276},[216,1339,314],{"class":268},[216,1341,317],{"class":268},[216,1343,320],{"class":285},[216,1345,323],{"class":272},[216,1347,326],{"class":285},[216,1349,368],{"class":272},[216,1351,333],{"class":332},[216,1353,373],{"class":272},[216,1355,1356,1359,1361],{"class":264,"line":376},[216,1357,1358],{"class":272},"      method: ",[216,1360,382],{"class":332},[216,1362,385],{"class":272},[216,1364,1365],{"class":264,"line":388},[216,1366,1367],{"class":272},"      body: formData\n",[216,1369,1370],{"class":264,"line":406},[216,1371,1372],{"class":272},"    })\n",[216,1374,1375],{"class":264,"line":412},[216,1376,1377],{"class":302},"    \u002F\u002F Toast is shown automatically, no manual handling needed\n",[216,1379,1380,1383,1385,1387,1390,1392,1394,1396],{"class":264,"line":417},[216,1381,1382],{"class":285},"    navigateTo",[216,1384,498],{"class":272},[216,1386,443],{"class":332},[216,1388,1389],{"class":272},"user",[216,1391,941],{"class":332},[216,1393,446],{"class":272},[216,1395,449],{"class":332},[216,1397,336],{"class":272},[216,1399,1400],{"class":264,"line":423},[216,1401,1051],{"class":272},[216,1403,1404,1407],{"class":264,"line":454},[216,1405,1406],{"class":268},"  catch",[216,1408,1409],{"class":272}," (error) {\n",[216,1411,1412],{"class":264,"line":464},[216,1413,1414],{"class":302},"    \u002F\u002F Business error Toast is shown automatically\n",[216,1416,1417],{"class":264,"line":474},[216,1418,1419],{"class":302},"    \u002F\u002F Add extra logic here if needed (e.g. highlight form fields)\n",[216,1421,1422],{"class":264,"line":479},[216,1423,1051],{"class":272},[216,1425,1426],{"class":264,"line":484},[216,1427,1428],{"class":272},"}\n",[216,1430,1431],{"class":264,"line":490},[216,1432,296],{"emptyLinePlaceholder":295},[216,1434,1436],{"class":264,"line":1435},20,[216,1437,1438],{"class":302},"\u002F\u002F Delete confirmation\n",[216,1440,1442,1444,1446,1449,1451,1453,1455,1458],{"class":264,"line":1441},21,[216,1443,1301],{"class":268},[216,1445,1304],{"class":268},[216,1447,1448],{"class":285}," handleDelete",[216,1450,498],{"class":272},[216,1452,446],{"class":1312},[216,1454,1316],{"class":268},[216,1456,1457],{"class":276}," string",[216,1459,1322],{"class":272},[216,1461,1463,1466,1468,1470,1472,1474,1476,1478,1480],{"class":264,"line":1462},22,[216,1464,1465],{"class":268},"  await",[216,1467,320],{"class":285},[216,1469,498],{"class":272},[216,1471,443],{"class":332},[216,1473,446],{"class":272},[216,1475,449],{"class":332},[216,1477,507],{"class":272},[216,1479,510],{"class":332},[216,1481,513],{"class":272},[216,1483,1485,1487,1490,1493],{"class":264,"line":1484},23,[216,1486,1465],{"class":268},[216,1488,1489],{"class":285}," refreshNuxtData",[216,1491,1492],{"class":272},"() ",[216,1494,1495],{"class":302},"\u002F\u002F Refresh page-cached data\n",[216,1497,1499],{"class":264,"line":1498},24,[216,1500,1428],{"class":272},[216,1502,1504,1507,1509],{"class":264,"line":1503},25,[216,1505,1506],{"class":272},"\u003C\u002F",[216,1508,1257],{"class":1256},[216,1510,1271],{"class":272},[229,1512,1514],{"id":1513},"using-in-useasyncdata","Using in useAsyncData",[209,1516,1517,1518,1520,1521,1316],{},"When you need to aggregate multiple endpoints or do complex data processing, use ",[235,1519,153],{}," inside ",[235,1522,1523],{},"useAsyncData",[254,1525,1527],{"className":256,"code":1526,"language":258,"meta":259,"style":259},"const { $api } = useNuxtApp()\n\n\u002F\u002F Aggregate multiple endpoints\nconst { data: dashboard } = await useAsyncData('dashboard', async () => {\n  const [users, stats, recent] = await Promise.all([\n    $api\u003CUser[]>('\u002Fusers'),\n    $api\u003CStats>('\u002Fstats'),\n    $api\u003CActivity[]>('\u002Factivity\u002Frecent')\n  ])\n  return { users, stats, recent }\n})\n",[235,1528,1529,1545,1549,1554,1593,1632,1648,1663,1679,1684,1692],{"__ignoreMap":259},[216,1530,1531,1533,1535,1537,1539,1541,1543],{"class":264,"line":265},[216,1532,269],{"class":268},[216,1534,273],{"class":272},[216,1536,153],{"class":276},[216,1538,279],{"class":272},[216,1540,282],{"class":268},[216,1542,286],{"class":285},[216,1544,289],{"class":272},[216,1546,1547],{"class":264,"line":292},[216,1548,296],{"emptyLinePlaceholder":295},[216,1550,1551],{"class":264,"line":299},[216,1552,1553],{"class":302},"\u002F\u002F Aggregate multiple endpoints\n",[216,1555,1556,1558,1560,1562,1564,1567,1569,1571,1573,1576,1578,1581,1583,1585,1588,1591],{"class":264,"line":306},[216,1557,269],{"class":268},[216,1559,273],{"class":272},[216,1561,906],{"class":1312},[216,1563,913],{"class":272},[216,1565,1566],{"class":276},"dashboard",[216,1568,279],{"class":272},[216,1570,282],{"class":268},[216,1572,317],{"class":268},[216,1574,1575],{"class":285}," useAsyncData",[216,1577,498],{"class":272},[216,1579,1580],{"class":332},"'dashboard'",[216,1582,244],{"class":272},[216,1584,1301],{"class":268},[216,1586,1587],{"class":272}," () ",[216,1589,1590],{"class":268},"=>",[216,1592,1330],{"class":272},[216,1594,1595,1598,1601,1604,1606,1609,1611,1614,1617,1619,1621,1624,1626,1629],{"class":264,"line":339},[216,1596,1597],{"class":268},"  const",[216,1599,1600],{"class":272}," [",[216,1602,1603],{"class":276},"users",[216,1605,244],{"class":272},[216,1607,1608],{"class":276},"stats",[216,1610,244],{"class":272},[216,1612,1613],{"class":276},"recent",[216,1615,1616],{"class":272},"] ",[216,1618,282],{"class":268},[216,1620,317],{"class":268},[216,1622,1623],{"class":276}," Promise",[216,1625,941],{"class":272},[216,1627,1628],{"class":285},"all",[216,1630,1631],{"class":272},"([\n",[216,1633,1634,1637,1639,1641,1643,1645],{"class":264,"line":344},[216,1635,1636],{"class":285},"    $api",[216,1638,323],{"class":272},[216,1640,326],{"class":285},[216,1642,329],{"class":272},[216,1644,333],{"class":332},[216,1646,1647],{"class":272},"),\n",[216,1649,1650,1652,1654,1657,1659,1661],{"class":264,"line":350},[216,1651,1636],{"class":285},[216,1653,323],{"class":272},[216,1655,1656],{"class":285},"Stats",[216,1658,368],{"class":272},[216,1660,691],{"class":332},[216,1662,1647],{"class":272},[216,1664,1665,1667,1669,1672,1674,1677],{"class":264,"line":376},[216,1666,1636],{"class":285},[216,1668,323],{"class":272},[216,1670,1671],{"class":285},"Activity",[216,1673,329],{"class":272},[216,1675,1676],{"class":332},"'\u002Factivity\u002Frecent'",[216,1678,336],{"class":272},[216,1680,1681],{"class":264,"line":388},[216,1682,1683],{"class":272},"  ])\n",[216,1685,1686,1689],{"class":264,"line":406},[216,1687,1688],{"class":268},"  return",[216,1690,1691],{"class":272}," { users, stats, recent }\n",[216,1693,1694],{"class":264,"line":412},[216,1695,409],{"class":272},[702,1697,1699],{"id":1698},"wrapping-a-custom-composable","Wrapping a Custom Composable",[254,1701,1704],{"className":256,"code":1702,"filename":1703,"language":258,"meta":259,"style":259},"export function useDashboard() {\n  const { $api } = useNuxtApp()\n\n  return useAsyncData('dashboard', async () => {\n    const [users, stats] = await Promise.all([\n      $api\u003CUser[]>('\u002Fusers'),\n      $api\u003CStats>('\u002Fstats')\n    ])\n    return { users, stats }\n  })\n}\n","app\u002Fcomposables\u002FuseDashboard.ts",[235,1705,1706,1718,1734,1738,1758,1784,1799,1813,1818,1826,1831],{"__ignoreMap":259},[216,1707,1708,1710,1712,1715],{"class":264,"line":265},[216,1709,977],{"class":268},[216,1711,1304],{"class":268},[216,1713,1714],{"class":285}," useDashboard",[216,1716,1717],{"class":272},"() {\n",[216,1719,1720,1722,1724,1726,1728,1730,1732],{"class":264,"line":292},[216,1721,1597],{"class":268},[216,1723,273],{"class":272},[216,1725,153],{"class":276},[216,1727,279],{"class":272},[216,1729,282],{"class":268},[216,1731,286],{"class":285},[216,1733,289],{"class":272},[216,1735,1736],{"class":264,"line":299},[216,1737,296],{"emptyLinePlaceholder":295},[216,1739,1740,1742,1744,1746,1748,1750,1752,1754,1756],{"class":264,"line":306},[216,1741,1688],{"class":268},[216,1743,1575],{"class":285},[216,1745,498],{"class":272},[216,1747,1580],{"class":332},[216,1749,244],{"class":272},[216,1751,1301],{"class":268},[216,1753,1587],{"class":272},[216,1755,1590],{"class":268},[216,1757,1330],{"class":272},[216,1759,1760,1762,1764,1766,1768,1770,1772,1774,1776,1778,1780,1782],{"class":264,"line":339},[216,1761,1335],{"class":268},[216,1763,1600],{"class":272},[216,1765,1603],{"class":276},[216,1767,244],{"class":272},[216,1769,1608],{"class":276},[216,1771,1616],{"class":272},[216,1773,282],{"class":268},[216,1775,317],{"class":268},[216,1777,1623],{"class":276},[216,1779,941],{"class":272},[216,1781,1628],{"class":285},[216,1783,1631],{"class":272},[216,1785,1786,1789,1791,1793,1795,1797],{"class":264,"line":344},[216,1787,1788],{"class":285},"      $api",[216,1790,323],{"class":272},[216,1792,326],{"class":285},[216,1794,329],{"class":272},[216,1796,333],{"class":332},[216,1798,1647],{"class":272},[216,1800,1801,1803,1805,1807,1809,1811],{"class":264,"line":350},[216,1802,1788],{"class":285},[216,1804,323],{"class":272},[216,1806,1656],{"class":285},[216,1808,368],{"class":272},[216,1810,691],{"class":332},[216,1812,336],{"class":272},[216,1814,1815],{"class":264,"line":376},[216,1816,1817],{"class":272},"    ])\n",[216,1819,1820,1823],{"class":264,"line":388},[216,1821,1822],{"class":268},"    return",[216,1824,1825],{"class":272}," { users, stats }\n",[216,1827,1828],{"class":264,"line":406},[216,1829,1830],{"class":272},"  })\n",[216,1832,1833],{"class":264,"line":412},[216,1834,1428],{"class":272},[702,1836,1838],{"id":1837},"business-operation-composable","Business Operation Composable",[209,1840,1841,1842,1844],{},"For write operations such as delete or approve, encapsulate the ",[235,1843,153],{}," calls in a dedicated composable to keep page files lean:",[254,1846,1849],{"className":256,"code":1847,"filename":1848,"language":258,"meta":259,"style":259},"export function useUserActions() {\n  const { $api } = useNuxtApp()\n\n  async function remove(id: string) {\n    await $api(`\u002Fusers\u002F${id}`, { method: 'DELETE' })\n    await refreshNuxtData()\n  }\n\n  async function create(data: CreateUserRequest) {\n    return await $api\u003CUser>('\u002Fusers', {\n      method: 'POST',\n      body: data,\n    })\n  }\n\n  async function updateRole(id: string, role: UserRole) {\n    return await $api\u003CUser>(`\u002Fusers\u002F${id}\u002Frole`, {\n      method: 'PUT',\n      body: { role },\n      toast: { successMessage: 'Role updated' },\n    })\n  }\n\n  return { remove, create, updateRole }\n}\n","app\u002Fcomposables\u002FuseUserActions.ts",[235,1850,1851,1862,1878,1882,1902,1923,1931,1935,1939,1958,1976,1984,1989,1993,1997,2001,2030,2053,2061,2066,2077,2081,2085,2089,2096],{"__ignoreMap":259},[216,1852,1853,1855,1857,1860],{"class":264,"line":265},[216,1854,977],{"class":268},[216,1856,1304],{"class":268},[216,1858,1859],{"class":285}," useUserActions",[216,1861,1717],{"class":272},[216,1863,1864,1866,1868,1870,1872,1874,1876],{"class":264,"line":292},[216,1865,1597],{"class":268},[216,1867,273],{"class":272},[216,1869,153],{"class":276},[216,1871,279],{"class":272},[216,1873,282],{"class":268},[216,1875,286],{"class":285},[216,1877,289],{"class":272},[216,1879,1880],{"class":264,"line":299},[216,1881,296],{"emptyLinePlaceholder":295},[216,1883,1884,1887,1889,1892,1894,1896,1898,1900],{"class":264,"line":306},[216,1885,1886],{"class":268},"  async",[216,1888,1304],{"class":268},[216,1890,1891],{"class":285}," remove",[216,1893,498],{"class":272},[216,1895,446],{"class":1312},[216,1897,1316],{"class":268},[216,1899,1457],{"class":276},[216,1901,1322],{"class":272},[216,1903,1904,1907,1909,1911,1913,1915,1917,1919,1921],{"class":264,"line":339},[216,1905,1906],{"class":268},"    await",[216,1908,320],{"class":285},[216,1910,498],{"class":272},[216,1912,443],{"class":332},[216,1914,446],{"class":272},[216,1916,449],{"class":332},[216,1918,507],{"class":272},[216,1920,510],{"class":332},[216,1922,513],{"class":272},[216,1924,1925,1927,1929],{"class":264,"line":344},[216,1926,1906],{"class":268},[216,1928,1489],{"class":285},[216,1930,289],{"class":272},[216,1932,1933],{"class":264,"line":350},[216,1934,1051],{"class":272},[216,1936,1937],{"class":264,"line":376},[216,1938,296],{"emptyLinePlaceholder":295},[216,1940,1941,1943,1945,1948,1950,1952,1954,1956],{"class":264,"line":388},[216,1942,1886],{"class":268},[216,1944,1304],{"class":268},[216,1946,1947],{"class":285}," create",[216,1949,498],{"class":272},[216,1951,906],{"class":1312},[216,1953,1316],{"class":268},[216,1955,1319],{"class":285},[216,1957,1322],{"class":272},[216,1959,1960,1962,1964,1966,1968,1970,1972,1974],{"class":264,"line":406},[216,1961,1822],{"class":268},[216,1963,317],{"class":268},[216,1965,320],{"class":285},[216,1967,323],{"class":272},[216,1969,326],{"class":285},[216,1971,368],{"class":272},[216,1973,333],{"class":332},[216,1975,373],{"class":272},[216,1977,1978,1980,1982],{"class":264,"line":412},[216,1979,1358],{"class":272},[216,1981,382],{"class":332},[216,1983,385],{"class":272},[216,1985,1986],{"class":264,"line":417},[216,1987,1988],{"class":272},"      body: data,\n",[216,1990,1991],{"class":264,"line":423},[216,1992,1372],{"class":272},[216,1994,1995],{"class":264,"line":454},[216,1996,1051],{"class":272},[216,1998,1999],{"class":264,"line":464},[216,2000,296],{"emptyLinePlaceholder":295},[216,2002,2003,2005,2007,2010,2012,2014,2016,2018,2020,2023,2025,2028],{"class":264,"line":474},[216,2004,1886],{"class":268},[216,2006,1304],{"class":268},[216,2008,2009],{"class":285}," updateRole",[216,2011,498],{"class":272},[216,2013,446],{"class":1312},[216,2015,1316],{"class":268},[216,2017,1457],{"class":276},[216,2019,244],{"class":272},[216,2021,2022],{"class":1312},"role",[216,2024,1316],{"class":268},[216,2026,2027],{"class":285}," UserRole",[216,2029,1322],{"class":272},[216,2031,2032,2034,2036,2038,2040,2042,2044,2046,2048,2051],{"class":264,"line":479},[216,2033,1822],{"class":268},[216,2035,317],{"class":268},[216,2037,320],{"class":285},[216,2039,323],{"class":272},[216,2041,326],{"class":285},[216,2043,368],{"class":272},[216,2045,443],{"class":332},[216,2047,446],{"class":272},[216,2049,2050],{"class":332},"}\u002Frole`",[216,2052,373],{"class":272},[216,2054,2055,2057,2059],{"class":264,"line":484},[216,2056,1358],{"class":272},[216,2058,459],{"class":332},[216,2060,385],{"class":272},[216,2062,2063],{"class":264,"line":490},[216,2064,2065],{"class":272},"      body: { role },\n",[216,2067,2068,2071,2074],{"class":264,"line":1435},[216,2069,2070],{"class":272},"      toast: { successMessage: ",[216,2072,2073],{"class":332},"'Role updated'",[216,2075,2076],{"class":272}," },\n",[216,2078,2079],{"class":264,"line":1441},[216,2080,1372],{"class":272},[216,2082,2083],{"class":264,"line":1462},[216,2084,1051],{"class":272},[216,2086,2087],{"class":264,"line":1484},[216,2088,296],{"emptyLinePlaceholder":295},[216,2090,2091,2093],{"class":264,"line":1498},[216,2092,1688],{"class":268},[216,2094,2095],{"class":272}," { remove, create, updateRole }\n",[216,2097,2098],{"class":264,"line":1503},[216,2099,1428],{"class":272},[254,2101,2104],{"className":1245,"code":2102,"filename":2103,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\n\u002F\u002F Data fetching with useApiFetch\nconst { data: users, refresh } = await useApiFetch\u003CUser[]>('\u002Fusers')\n\n\u002F\u002F Write operations with $api composable\nconst { remove, updateRole } = useUserActions()\n\u003C\u002Fscript>\n","app\u002Fpages\u002Fusers\u002Findex.vue",[235,2105,2106,2122,2127,2163,2167,2172,2194],{"__ignoreMap":259},[216,2107,2108,2110,2112,2114,2116,2118,2120],{"class":264,"line":265},[216,2109,323],{"class":272},[216,2111,1257],{"class":1256},[216,2113,1260],{"class":285},[216,2115,1263],{"class":285},[216,2117,282],{"class":272},[216,2119,1268],{"class":332},[216,2121,1271],{"class":272},[216,2123,2124],{"class":264,"line":292},[216,2125,2126],{"class":302},"\u002F\u002F Data fetching with useApiFetch\n",[216,2128,2129,2131,2133,2135,2137,2139,2141,2144,2146,2148,2150,2153,2155,2157,2159,2161],{"class":264,"line":299},[216,2130,269],{"class":268},[216,2132,273],{"class":272},[216,2134,906],{"class":1312},[216,2136,913],{"class":272},[216,2138,1603],{"class":276},[216,2140,244],{"class":272},[216,2142,2143],{"class":276},"refresh",[216,2145,279],{"class":272},[216,2147,282],{"class":268},[216,2149,317],{"class":268},[216,2151,2152],{"class":285}," useApiFetch",[216,2154,323],{"class":272},[216,2156,326],{"class":285},[216,2158,329],{"class":272},[216,2160,333],{"class":332},[216,2162,336],{"class":272},[216,2164,2165],{"class":264,"line":306},[216,2166,296],{"emptyLinePlaceholder":295},[216,2168,2169],{"class":264,"line":339},[216,2170,2171],{"class":302},"\u002F\u002F Write operations with $api composable\n",[216,2173,2174,2176,2178,2181,2183,2186,2188,2190,2192],{"class":264,"line":344},[216,2175,269],{"class":268},[216,2177,273],{"class":272},[216,2179,2180],{"class":276},"remove",[216,2182,244],{"class":272},[216,2184,2185],{"class":276},"updateRole",[216,2187,279],{"class":272},[216,2189,282],{"class":268},[216,2191,1859],{"class":285},[216,2193,289],{"class":272},[216,2195,2196,2198,2200],{"class":264,"line":350},[216,2197,1506],{"class":272},[216,2199,1257],{"class":1256},[216,2201,1271],{"class":272},[229,2203,2205],{"id":2204},"per-request-configuration","Per-Request Configuration",[209,2207,2208,2209,244,2211,2213],{},"Per-request options sit at the same level as ofetch options; ",[235,2210,153],{},[235,2212,163],{},", upload\u002Fdownload and streaming requests share the same shape:",[254,2215,2217],{"className":256,"code":2216,"language":258,"meta":259,"style":259},"const { $api } = useNuxtApp()\n\n\u002F\u002F Disable Toast\nawait $api('\u002Fusers', { toast: false })\n\n\u002F\u002F Custom Toast message\nawait $api('\u002Fusers', {\n  method: 'POST',\n  body: formData,\n  toast: { successMessage: 'Created successfully' }\n})\n\n\u002F\u002F Disable business status code checking (still unwraps by dataKey)\nconst data = await $api('\u002Fexternal-api\u002Fdata', { businessCheck: false })\n",[235,2218,2219,2235,2239,2244,2261,2265,2270,2282,2290,2295,2305,2309,2313,2318],{"__ignoreMap":259},[216,2220,2221,2223,2225,2227,2229,2231,2233],{"class":264,"line":265},[216,2222,269],{"class":268},[216,2224,273],{"class":272},[216,2226,153],{"class":276},[216,2228,279],{"class":272},[216,2230,282],{"class":268},[216,2232,286],{"class":285},[216,2234,289],{"class":272},[216,2236,2237],{"class":264,"line":292},[216,2238,296],{"emptyLinePlaceholder":295},[216,2240,2241],{"class":264,"line":299},[216,2242,2243],{"class":302},"\u002F\u002F Disable Toast\n",[216,2245,2246,2248,2250,2252,2254,2257,2259],{"class":264,"line":306},[216,2247,493],{"class":268},[216,2249,320],{"class":285},[216,2251,498],{"class":272},[216,2253,333],{"class":332},[216,2255,2256],{"class":272},", { toast: ",[216,2258,1024],{"class":276},[216,2260,513],{"class":272},[216,2262,2263],{"class":264,"line":339},[216,2264,296],{"emptyLinePlaceholder":295},[216,2266,2267],{"class":264,"line":344},[216,2268,2269],{"class":302},"\u002F\u002F Custom Toast message\n",[216,2271,2272,2274,2276,2278,2280],{"class":264,"line":350},[216,2273,493],{"class":268},[216,2275,320],{"class":285},[216,2277,498],{"class":272},[216,2279,333],{"class":332},[216,2281,373],{"class":272},[216,2283,2284,2286,2288],{"class":264,"line":376},[216,2285,379],{"class":272},[216,2287,382],{"class":332},[216,2289,385],{"class":272},[216,2291,2292],{"class":264,"line":388},[216,2293,2294],{"class":272},"  body: formData,\n",[216,2296,2297,2300,2303],{"class":264,"line":406},[216,2298,2299],{"class":272},"  toast: { successMessage: ",[216,2301,2302],{"class":332},"'Created successfully'",[216,2304,403],{"class":272},[216,2306,2307],{"class":264,"line":412},[216,2308,409],{"class":272},[216,2310,2311],{"class":264,"line":417},[216,2312,296],{"emptyLinePlaceholder":295},[216,2314,2315],{"class":264,"line":423},[216,2316,2317],{"class":302},"\u002F\u002F Disable business status code checking (still unwraps by dataKey)\n",[216,2319,2320,2322,2325,2327,2329,2331,2333,2336,2338,2340],{"class":264,"line":454},[216,2321,269],{"class":268},[216,2323,2324],{"class":276}," data",[216,2326,314],{"class":268},[216,2328,317],{"class":268},[216,2330,320],{"class":285},[216,2332,498],{"class":272},[216,2334,2335],{"class":332},"'\u002Fexternal-api\u002Fdata'",[216,2337,1127],{"class":272},[216,2339,1024],{"class":276},[216,2341,513],{"class":272},[209,2343,2344,2345,889,2348,2351],{},"User-provided hooks such as ",[235,2346,2347],{},"onRequest",[235,2349,2350],{},"onResponse"," run together with the built-in interceptors (built-in first) and never override auth, business validation, unwrapping or Toast:",[254,2353,2355],{"className":256,"code":2354,"language":258,"meta":259,"style":259},"await $api('\u002Fusers', {\n  onResponse({ response }) {\n    \u002F\u002F response._data is already processed by the policy\n  }\n})\n",[235,2356,2357,2369,2382,2387,2391],{"__ignoreMap":259},[216,2358,2359,2361,2363,2365,2367],{"class":264,"line":265},[216,2360,493],{"class":268},[216,2362,320],{"class":285},[216,2364,498],{"class":272},[216,2366,333],{"class":332},[216,2368,373],{"class":272},[216,2370,2371,2374,2377,2379],{"class":264,"line":292},[216,2372,2373],{"class":285},"  onResponse",[216,2375,2376],{"class":272},"({ ",[216,2378,965],{"class":1312},[216,2380,2381],{"class":272}," }) {\n",[216,2383,2384],{"class":264,"line":299},[216,2385,2386],{"class":302},"    \u002F\u002F response._data is already processed by the policy\n",[216,2388,2389],{"class":264,"line":306},[216,2390,1051],{"class":272},[216,2392,2393],{"class":264,"line":339},[216,2394,409],{"class":272},[515,2396,2397,2398,2401,2402,2404,2405,2407],{},"These options are declared through a type extension of ofetch's ",[235,2399,2400],{},"FetchOptions"," and are only recognized by Movk Nuxt's ",[235,2403,153],{}," client; the native ",[235,2406,240],{}," ignores them.",[229,2409,2411],{"id":2410},"error-handling","Error Handling",[209,2413,2414,2415,2417,2418,2421,2422,2425,2426,2428,2429,244,2431,244,2434,244,2437,1226,2440,2443,2444,2447],{},"Every error thrown by ",[235,2416,153],{}," is an ",[235,2419,2420],{},"ApiError"," (",[235,2423,2424],{},"NuxtError\u003CApiErrorData>","), classified by ",[235,2427,1141],{}," as ",[235,2430,1144],{},[235,2432,2433],{},"http",[235,2435,2436],{},"network",[235,2438,2439],{},"timeout",[235,2441,2442],{},"aborted",". The error Toast and ",[235,2445,2446],{},"movk:api:error"," fire only once after ofetch retries finish; aborts are not reported:",[254,2449,2451],{"className":256,"code":2450,"language":258,"meta":259,"style":259},"try {\n  await $api('\u002Forders', { method: 'POST', body })\n}\ncatch (error) {\n  const { kind, code } = (error as ApiError).data ?? {}\n  if (kind === 'business' && code === 40001) {\n    \u002F\u002F business-code branch\n  }\n}\n",[235,2452,2453,2460,2478,2482,2489,2524,2551,2556,2560],{"__ignoreMap":259},[216,2454,2455,2458],{"class":264,"line":265},[216,2456,2457],{"class":268},"try",[216,2459,1330],{"class":272},[216,2461,2462,2464,2466,2468,2471,2473,2475],{"class":264,"line":292},[216,2463,1465],{"class":268},[216,2465,320],{"class":285},[216,2467,498],{"class":272},[216,2469,2470],{"class":332},"'\u002Forders'",[216,2472,507],{"class":272},[216,2474,382],{"class":332},[216,2476,2477],{"class":272},", body })\n",[216,2479,2480],{"class":264,"line":299},[216,2481,1428],{"class":272},[216,2483,2484,2487],{"class":264,"line":306},[216,2485,2486],{"class":268},"catch",[216,2488,1409],{"class":272},[216,2490,2491,2493,2495,2498,2500,2502,2504,2506,2509,2512,2515,2518,2521],{"class":264,"line":339},[216,2492,1597],{"class":268},[216,2494,273],{"class":272},[216,2496,2497],{"class":276},"kind",[216,2499,244],{"class":272},[216,2501,235],{"class":276},[216,2503,279],{"class":272},[216,2505,282],{"class":268},[216,2507,2508],{"class":272}," (error ",[216,2510,2511],{"class":268},"as",[216,2513,2514],{"class":285}," ApiError",[216,2516,2517],{"class":272},").data ",[216,2519,2520],{"class":268},"??",[216,2522,2523],{"class":272}," {}\n",[216,2525,2526,2529,2532,2535,2538,2541,2544,2546,2549],{"class":264,"line":344},[216,2527,2528],{"class":268},"  if",[216,2530,2531],{"class":272}," (kind ",[216,2533,2534],{"class":268},"===",[216,2536,2537],{"class":332}," 'business'",[216,2539,2540],{"class":268}," &&",[216,2542,2543],{"class":272}," code ",[216,2545,2534],{"class":268},[216,2547,2548],{"class":276}," 40001",[216,2550,1322],{"class":272},[216,2552,2553],{"class":264,"line":350},[216,2554,2555],{"class":302},"    \u002F\u002F business-code branch\n",[216,2557,2558],{"class":264,"line":376},[216,2559,1051],{"class":272},[216,2561,2562],{"class":264,"line":388},[216,2563,1428],{"class":272},[229,2565,145],{"id":2566},"api",[702,2568,2570],{"id":2569},"apiinstance","ApiInstance",[209,2572,2573,2574,1316],{},"Type definition of ",[235,2575,153],{},[254,2577,2579],{"className":256,"code":2578,"language":258,"meta":259,"style":259},"type ApiInstance = $Fetch & {\n  use: (endpoint: string) => ApiInstance\n  stream: \u003CT>(url: string, options?: ApiStreamOptions\u003CT>) => Promise\u003CAsyncGenerator\u003CT>>\n}\n",[235,2580,2581,2599,2623,2678],{"__ignoreMap":259},[216,2582,2583,2586,2589,2591,2594,2597],{"class":264,"line":265},[216,2584,2585],{"class":268},"type",[216,2587,2588],{"class":285}," ApiInstance",[216,2590,314],{"class":268},[216,2592,2593],{"class":285}," $Fetch",[216,2595,2596],{"class":268}," &",[216,2598,1330],{"class":272},[216,2600,2601,2604,2606,2608,2611,2613,2615,2618,2620],{"class":264,"line":292},[216,2602,2603],{"class":285},"  use",[216,2605,1316],{"class":268},[216,2607,2421],{"class":272},[216,2609,2610],{"class":1312},"endpoint",[216,2612,1316],{"class":268},[216,2614,1457],{"class":276},[216,2616,2617],{"class":272},") ",[216,2619,1590],{"class":268},[216,2621,2622],{"class":285}," ApiInstance\n",[216,2624,2625,2628,2630,2633,2635,2637,2640,2642,2644,2646,2649,2652,2655,2657,2659,2662,2664,2666,2668,2671,2673,2675],{"class":264,"line":299},[216,2626,2627],{"class":285},"  stream",[216,2629,1316],{"class":268},[216,2631,2632],{"class":272}," \u003C",[216,2634,527],{"class":285},[216,2636,368],{"class":272},[216,2638,2639],{"class":1312},"url",[216,2641,1316],{"class":268},[216,2643,1457],{"class":276},[216,2645,244],{"class":272},[216,2647,2648],{"class":1312},"options",[216,2650,2651],{"class":268},"?:",[216,2653,2654],{"class":285}," ApiStreamOptions",[216,2656,323],{"class":272},[216,2658,527],{"class":285},[216,2660,2661],{"class":272},">) ",[216,2663,1590],{"class":268},[216,2665,1623],{"class":285},[216,2667,323],{"class":272},[216,2669,2670],{"class":285},"AsyncGenerator",[216,2672,323],{"class":272},[216,2674,527],{"class":285},[216,2676,2677],{"class":272},">>\n",[216,2679,2680],{"class":264,"line":306},[216,2681,1428],{"class":272},[2683,2684,2685,2699],"field-group",{},[2686,2687,2690,2691,2694,2695,2698],"field",{"name":2688,"type":2689},"$api(url, options)","Promise\u003CT>","Send an API request. Supports all ofetch options plus the fields of ",[235,2692,2693],{},"ApiRequestOptions",". ",[235,2696,2697],{},"$api.raw"," returns the full response through the same pipeline.",[2686,2700,2701,2702,2704,2705,2707,2708,2711,2712,2715],{"name":538,"type":2570},"Switch to the specified endpoint and return that endpoint's ",[235,2703,153],{}," instance. ",[235,2706,2610],{}," is typed as ",[235,2709,2710],{},"MovkApiEndpointName"," (a literal union merged by the module from the ",[235,2713,2714],{},"movk.api.endpoints"," declaration). Endpoint instances are internally cached; multiple calls return the same instance.",[702,2717,2693],{"id":2718},"apirequestoptions",[209,2720,2721],{},"Per-request configuration passed alongside ofetch options:",[2683,2723,2724,2734,2754],{},[2686,2725,2727,2728,2730,2731,2733],{"name":1171,"type":2726},"RequestToastOptions | false","Toast configuration. Set to ",[235,2729,1024],{}," to disable all Toast notifications; ",[235,2732,1225],{}," re-enables it for one request when globally disabled.",[2686,2735,2737,2738,2740,2741,2744,2745,2747,2748,2750,2751,2753],{"name":892,"type":2736},"boolean","Whether to validate the business status code against ",[235,2739,884],{},". Inherits the endpoint \u002F global ",[235,2742,2743],{},"response.businessCheck"," when omitted; when ",[235,2746,1024],{},", no business ",[235,2749,2420],{}," is thrown but the ",[235,2752,523],{}," field is still unwrapped.",[2686,2755,2756,2757,2740,2759,2744,2762,2764,2765,2767,2768,941],{"name":888,"type":2736},"Whether to unwrap by ",[235,2758,523],{},[235,2760,2761],{},"response.unwrap",[235,2763,1024],{},", the interceptor does not overwrite ",[235,2766,920],{}," and the caller receives the raw body. Orthogonal to ",[235,2769,892],{},[702,2771,2420],{"id":2772},"apierror",[254,2774,2776],{"className":256,"code":2775,"language":258,"meta":259,"style":259},"type ApiError = NuxtError\u003CApiErrorData>\n\ninterface ApiErrorData {\n  kind: 'business' | 'http' | 'network' | 'timeout' | 'aborted'\n  endpoint: string\n  code?: number | string\n  response?: unknown\n}\n",[235,2777,2778,2796,2800,2810,2840,2850,2864,2874],{"__ignoreMap":259},[216,2779,2780,2782,2784,2786,2789,2791,2794],{"class":264,"line":265},[216,2781,2585],{"class":268},[216,2783,2514],{"class":285},[216,2785,314],{"class":268},[216,2787,2788],{"class":285}," NuxtError",[216,2790,323],{"class":272},[216,2792,2793],{"class":285},"ApiErrorData",[216,2795,1271],{"class":272},[216,2797,2798],{"class":264,"line":292},[216,2799,296],{"emptyLinePlaceholder":295},[216,2801,2802,2805,2808],{"class":264,"line":299},[216,2803,2804],{"class":268},"interface",[216,2806,2807],{"class":285}," ApiErrorData",[216,2809,1330],{"class":272},[216,2811,2812,2815,2817,2819,2822,2825,2827,2830,2832,2835,2837],{"class":264,"line":306},[216,2813,2814],{"class":1312},"  kind",[216,2816,1316],{"class":268},[216,2818,2537],{"class":332},[216,2820,2821],{"class":268}," |",[216,2823,2824],{"class":332}," 'http'",[216,2826,2821],{"class":268},[216,2828,2829],{"class":332}," 'network'",[216,2831,2821],{"class":268},[216,2833,2834],{"class":332}," 'timeout'",[216,2836,2821],{"class":268},[216,2838,2839],{"class":332}," 'aborted'\n",[216,2841,2842,2845,2847],{"class":264,"line":339},[216,2843,2844],{"class":1312},"  endpoint",[216,2846,1316],{"class":268},[216,2848,2849],{"class":276}," string\n",[216,2851,2852,2855,2857,2860,2862],{"class":264,"line":344},[216,2853,2854],{"class":1312},"  code",[216,2856,2651],{"class":268},[216,2858,2859],{"class":276}," number",[216,2861,2821],{"class":268},[216,2863,2849],{"class":276},[216,2865,2866,2869,2871],{"class":264,"line":350},[216,2867,2868],{"class":1312},"  response",[216,2870,2651],{"class":268},[216,2872,2873],{"class":276}," unknown\n",[216,2875,2876],{"class":264,"line":376},[216,2877,1428],{"class":272},[2683,2879,2880,2888,2896,2916,2927],{},[2686,2881,2884,2885,941],{"name":2882,"type":2883},"statusCode","number","The HTTP status on HTTP failures; on business failures the business code when it falls within 100–599, otherwise ",[235,2886,2887],{},"500",[2686,2889,2891,2892,2895],{"name":1186,"type":2890},"string","Error message, preferring the ",[235,2893,2894],{},"messageKey"," field of the response body.",[2686,2897,2900,2901,2903,2904,2906,2907,2909,2910,2912,2913,2915],{"name":2898,"type":2899},"data.kind","ApiErrorKind","Error category: ",[235,2902,1144],{}," failed business-code check, ",[235,2905,2433],{}," HTTP 4xx\u002F5xx, ",[235,2908,2436],{}," no response received, ",[235,2911,2439],{}," timed out, ",[235,2914,2442],{}," aborted by the caller.",[2686,2917,2920,2921,2923,2924,2926],{"name":2918,"type":2919},"data.code","number | string","The original business code (",[235,2922,1144],{},") or HTTP status (",[235,2925,2433],{},").",[2686,2928,2931],{"name":2929,"type":2930},"data.response","unknown","The raw response body.",[2933,2934,2935],"style",{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sCsY4, html code.shiki .sCsY4{--shiki-light:#6A737D;--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sIIMD, html code.shiki .sIIMD{--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sovSZ, html code.shiki .sovSZ{--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":259,"searchDepth":292,"depth":292,"links":2937},[2938,2939,2940,2945,2951,2954,2955,2956,2960,2961,2962],{"id":231,"depth":292,"text":15},{"id":251,"depth":292,"text":252},{"id":531,"depth":292,"text":532,"children":2941},[2942,2943,2944],{"id":704,"depth":299,"text":705},{"id":730,"depth":299,"text":731},{"id":747,"depth":299,"text":748},{"id":766,"depth":292,"text":767,"children":2946},[2947,2948,2949,2950],{"id":804,"depth":299,"text":805},{"id":822,"depth":299,"text":823},{"id":838,"depth":299,"text":839},{"id":850,"depth":299,"text":851},{"id":871,"depth":292,"text":872,"children":2952},[2953],{"id":954,"depth":299,"text":955},{"id":1151,"depth":292,"text":1152},{"id":1235,"depth":292,"text":1236},{"id":1513,"depth":292,"text":1514,"children":2957},[2958,2959],{"id":1698,"depth":299,"text":1699},{"id":1837,"depth":299,"text":1838},{"id":2204,"depth":292,"text":2205},{"id":2410,"depth":292,"text":2411},{"id":2566,"depth":292,"text":145,"children":2963},[2964,2965,2966],{"id":2569,"depth":299,"text":2570},{"id":2718,"depth":299,"text":2693},{"id":2772,"depth":299,"text":2420},"md",{},{"title":153,"description":156},{"loc":154},"4d71iNQn6P8qR9RNeVP6SgSXVfC0KOrJ9a8V6xrfl0s",[2973,2974],{"title":150,"path":146,"stem":147,"description":151,"children":-1},{"title":158,"path":159,"stem":160,"description":161,"children":-1},{"code":2976,"filePath":2977,"pascalName":725},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  endpoint: 'default' | 'v2'\n}>()\n\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nconst baseURL = computed(() => publicConfig.endpoints?.[props.endpoint]?.baseURL)\n\nasync function load() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use(props.endpoint)('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\nwatch(() => props.endpoint, load, { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"endpoint === 'v2' ? 'secondary' : 'neutral'\" variant=\"subtle\">\n        baseURL: {{ baseURL }}\n      \u003C\u002FUBadge>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-refresh-cw\" :loading=\"pending\" @click=\"load\">\n        刷新\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsExample.vue",{"code":2979,"filePath":2980,"pascalName":744},"\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nasync function call() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use('v2')('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-zap\" :loading=\"pending\" @click=\"call\">\n      $api.use('v2')('\u002Fprofile')\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsImperativeExample.vue",{"code":2982,"filePath":2983,"pascalName":757},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      在 \u003Ccode>nuxt.config\u003C\u002Fcode> 的 \u003Ccode>movk.api.endpoints\u003C\u002Fcode> 注册新别名后即可被 \u003Ccode>endpoint\u003C\u002Fcode> 选项引用。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiEndpointsRuntimeExample.vue",{"code":2985,"filePath":2986,"pascalName":819},"\u003Cscript setup lang=\"ts\">\nconst { session, loggedIn, fetch: refreshSession } = useUserSession()\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst loginPending = ref(false)\nconst logoutPending = ref(false)\n\nasync function login() {\n  loginPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogin', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    loginPending.value = false\n  }\n}\n\nasync function logout() {\n  logoutPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogout', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    logoutPending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"loggedIn ? 'success' : 'neutral'\" variant=\"subtle\">\n        {{ loggedIn ? '已登录' : '未登录' }}\n      \u003C\u002FUBadge>\n      \u003CUButton\n        v-if=\"!loggedIn\"\n        size=\"sm\"\n        :loading=\"loginPending\"\n        icon=\"i-lucide-log-in\"\n        @click=\"login\"\n      >\n        登录（写入 session.token）\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-else\n        size=\"sm\"\n        color=\"error\"\n        variant=\"outline\"\n        :loading=\"logoutPending\"\n        icon=\"i-lucide-log-out\"\n        @click=\"logout\"\n      >\n        登出（清除 session）\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ session }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthSessionExample.vue",{"code":2988,"filePath":2989,"pascalName":835},"\u003Cscript setup lang=\"ts\">\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst display = computed(() => {\n  if (protectedRes.error.value) {\n    return {\n      statusCode: protectedRes.error.value.statusCode,\n      message: protectedRes.error.value.message\n    }\n  }\n  return protectedRes.data.value\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-shield-check\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected\n    \u003C\u002FUButton>\n    \u003Cp class=\"text-xs text-muted\">\n      未登录时拦截器返回 401；已登录则携带 Authorization 头\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthProtectedExample.vue",{"code":2991,"filePath":2992,"pascalName":847},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      \u003Ccode>auth.unauthorized\u003C\u002Fcode> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003Ccode>redirect: true\u003C\u002Fcode> + \u003Ccode>loginPath\u003C\u002Fcode>。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ publicConfig.auth?.unauthorized }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthUnauthorizedExample.vue",{"code":2994,"filePath":2995,"pascalName":868},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst echoed = computed(() => {\n  const data = protectedRes.data.value\n  return data && typeof data === 'object'\n    ? (data as { authHeader?: string }).authHeader\n    : null\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected 查看注入\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ {\n      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n      echoed\n    } }}\u003C\u002Fpre>\n    \u003Cp class=\"text-xs text-muted\">\n      登录后再次请求，\u003Ccode>echoed\u003C\u002Fcode> 字段会展示拦截器实际注入的 Authorization 头。\n    \u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiAuthTokenInjectionExample.vue",{"code":2997,"filePath":2998,"pascalName":950},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'no-unwrap' | 'no-business-check' | 'combined'\n}>()\n\nconst fetchers = {\n  'default': useApiFetch('\u002Fprofile', { key: 'unwrap-default', immediate: false }),\n  'no-unwrap': useApiFetch('\u002Fprofile', { key: 'unwrap-no-unwrap', immediate: false, unwrap: false }),\n  'no-business-check': useApiFetch('\u002Fdemo\u002Flegacy', { key: 'unwrap-no-business-check', immediate: false, businessCheck: false }),\n  'combined': useApiFetch('\u002Fdemo\u002Fexternal', { key: 'unwrap-combined', immediate: false, businessCheck: false, unwrap: false })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。',\n  'no-unwrap': 'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。',\n  'no-business-check': 'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。',\n  'combined': 'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n}\n\nwatch(() => props.mode, () => active.value.execute(), { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUBadge variant=\"subtle\">\n      {{ mode }}\n    \u003C\u002FUBadge>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ active.data.value }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiUnwrapExample.vue",{"code":3000,"filePath":3001,"pascalName":1231},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'silent' | 'message' | 'error-only' | 'custom'\n}>()\n\nconst fail = ref(false)\nconst target = () => `\u002Fprofile${fail.value ? '?fail=1' : ''}`\n\nconst fetchers = {\n  'default': useApiFetch(target, { key: 'toast-default', immediate: false }),\n  'silent': useApiFetch(target, { key: 'toast-silent', immediate: false, toast: false }),\n  'message': useApiFetch(target, {\n    key: 'toast-message',\n    immediate: false,\n    toast: { successMessage: '加载成功 ✓', errorMessage: '加载失败 ✗' }\n  }),\n  'error-only': useApiFetch(target, { key: 'toast-error-only', immediate: false, toast: { success: false } }),\n  'custom': useApiFetch(target, {\n    key: 'toast-custom',\n    immediate: false,\n    toast: {\n      success: { color: 'secondary', icon: 'i-lucide-sparkles' },\n      error: { color: 'warning', icon: 'i-lucide-triangle-alert' }\n    }\n  })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。',\n  'silent': 'toast: false 关闭所有单次提示。',\n  'message': 'successMessage \u002F errorMessage 替换默认文案。',\n  'error-only': '{ success: false } 关闭成功提示但保留错误提示。',\n  'custom': '为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n}\n\nconst display = computed(() => active.value.error.value\n  ? { error: active.value.error.value.message }\n  : active.value.data.value)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-3 flex-wrap\">\n      \u003CUSwitch v-model=\"fail\" label=\"注入错误（验证错误分支）\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"active.execute()\">\n        触发请求\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002Fapi\u002FApiToastExample.vue",{"data":3003,"body":3004},{},{"type":205,"children":3005},[3006],{"type":208,"tag":209,"props":3007,"children":3008},{},[3009],{"type":213,"value":156},{"data":3011,"body":3012,"toc":4126},{"title":259,"description":259},{"type":205,"children":3013},[3014,4121],{"type":208,"tag":3015,"props":3016,"children":3017},"code-collapse",{},[3018],{"type":208,"tag":254,"props":3019,"children":3021},{"className":1245,"code":3020,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  endpoint: 'default' | 'v2'\n}>()\n\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nconst baseURL = computed(() => publicConfig.endpoints?.[props.endpoint]?.baseURL)\n\nasync function load() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use(props.endpoint)('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\nwatch(() => props.endpoint, load, { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"endpoint === 'v2' ? 'secondary' : 'neutral'\" variant=\"subtle\">\n        baseURL: {{ baseURL }}\n      \u003C\u002FUBadge>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-refresh-cw\" :loading=\"pending\" @click=\"load\">\n        刷新\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[3022],{"type":208,"tag":235,"props":3023,"children":3024},{"__ignoreMap":259},[3025,3060,3088,3114,3122,3129,3160,3186,3193,3233,3265,3314,3321,3356,3363,3383,3400,3417,3428,3466,3473,3485,3536,3543,3555,3572,3580,3588,3596,3626,3642,3650,3667,3699,3729,3811,3820,3837,3954,3963,3979,3996,4025,4034,4050,4088,4105],{"type":208,"tag":216,"props":3026,"children":3027},{"class":264,"line":265},[3028,3033,3038,3043,3047,3051,3056],{"type":208,"tag":216,"props":3029,"children":3031},{"style":3030},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[3032],{"type":213,"value":323},{"type":208,"tag":216,"props":3034,"children":3036},{"style":3035},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[3037],{"type":213,"value":1257},{"type":208,"tag":216,"props":3039,"children":3041},{"style":3040},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[3042],{"type":213,"value":1260},{"type":208,"tag":216,"props":3044,"children":3045},{"style":3040},[3046],{"type":213,"value":1263},{"type":208,"tag":216,"props":3048,"children":3049},{"style":3030},[3050],{"type":213,"value":282},{"type":208,"tag":216,"props":3052,"children":3054},{"style":3053},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[3055],{"type":213,"value":1268},{"type":208,"tag":216,"props":3057,"children":3058},{"style":3030},[3059],{"type":213,"value":1271},{"type":208,"tag":216,"props":3061,"children":3062},{"class":264,"line":292},[3063,3068,3074,3078,3083],{"type":208,"tag":216,"props":3064,"children":3066},{"style":3065},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[3067],{"type":213,"value":269},{"type":208,"tag":216,"props":3069,"children":3071},{"style":3070},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[3072],{"type":213,"value":3073}," props",{"type":208,"tag":216,"props":3075,"children":3076},{"style":3065},[3077],{"type":213,"value":314},{"type":208,"tag":216,"props":3079,"children":3080},{"style":3040},[3081],{"type":213,"value":3082}," defineProps",{"type":208,"tag":216,"props":3084,"children":3085},{"style":3030},[3086],{"type":213,"value":3087},"\u003C{\n",{"type":208,"tag":216,"props":3089,"children":3090},{"class":264,"line":299},[3091,3096,3100,3105,3109],{"type":208,"tag":216,"props":3092,"children":3094},{"style":3093},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[3095],{"type":213,"value":2844},{"type":208,"tag":216,"props":3097,"children":3098},{"style":3065},[3099],{"type":213,"value":1316},{"type":208,"tag":216,"props":3101,"children":3102},{"style":3053},[3103],{"type":213,"value":3104}," 'default'",{"type":208,"tag":216,"props":3106,"children":3107},{"style":3065},[3108],{"type":213,"value":2821},{"type":208,"tag":216,"props":3110,"children":3111},{"style":3053},[3112],{"type":213,"value":3113}," 'v2'\n",{"type":208,"tag":216,"props":3115,"children":3116},{"class":264,"line":306},[3117],{"type":208,"tag":216,"props":3118,"children":3119},{"style":3030},[3120],{"type":213,"value":3121},"}>()\n",{"type":208,"tag":216,"props":3123,"children":3124},{"class":264,"line":339},[3125],{"type":208,"tag":216,"props":3126,"children":3127},{"emptyLinePlaceholder":295},[3128],{"type":213,"value":296},{"type":208,"tag":216,"props":3130,"children":3131},{"class":264,"line":344},[3132,3136,3140,3144,3148,3152,3156],{"type":208,"tag":216,"props":3133,"children":3134},{"style":3065},[3135],{"type":213,"value":269},{"type":208,"tag":216,"props":3137,"children":3138},{"style":3030},[3139],{"type":213,"value":273},{"type":208,"tag":216,"props":3141,"children":3142},{"style":3070},[3143],{"type":213,"value":153},{"type":208,"tag":216,"props":3145,"children":3146},{"style":3030},[3147],{"type":213,"value":279},{"type":208,"tag":216,"props":3149,"children":3150},{"style":3065},[3151],{"type":213,"value":282},{"type":208,"tag":216,"props":3153,"children":3154},{"style":3040},[3155],{"type":213,"value":286},{"type":208,"tag":216,"props":3157,"children":3158},{"style":3030},[3159],{"type":213,"value":289},{"type":208,"tag":216,"props":3161,"children":3162},{"class":264,"line":350},[3163,3167,3172,3176,3181],{"type":208,"tag":216,"props":3164,"children":3165},{"style":3065},[3166],{"type":213,"value":269},{"type":208,"tag":216,"props":3168,"children":3169},{"style":3070},[3170],{"type":213,"value":3171}," publicConfig",{"type":208,"tag":216,"props":3173,"children":3174},{"style":3065},[3175],{"type":213,"value":314},{"type":208,"tag":216,"props":3177,"children":3178},{"style":3040},[3179],{"type":213,"value":3180}," useRuntimeConfig",{"type":208,"tag":216,"props":3182,"children":3183},{"style":3030},[3184],{"type":213,"value":3185},"().public.movkApi\n",{"type":208,"tag":216,"props":3187,"children":3188},{"class":264,"line":376},[3189],{"type":208,"tag":216,"props":3190,"children":3191},{"emptyLinePlaceholder":295},[3192],{"type":213,"value":296},{"type":208,"tag":216,"props":3194,"children":3195},{"class":264,"line":388},[3196,3200,3204,3208,3213,3217,3221,3225,3229],{"type":208,"tag":216,"props":3197,"children":3198},{"style":3065},[3199],{"type":213,"value":269},{"type":208,"tag":216,"props":3201,"children":3202},{"style":3070},[3203],{"type":213,"value":2324},{"type":208,"tag":216,"props":3205,"children":3206},{"style":3065},[3207],{"type":213,"value":314},{"type":208,"tag":216,"props":3209,"children":3210},{"style":3040},[3211],{"type":213,"value":3212}," ref",{"type":208,"tag":216,"props":3214,"children":3215},{"style":3030},[3216],{"type":213,"value":323},{"type":208,"tag":216,"props":3218,"children":3219},{"style":3070},[3220],{"type":213,"value":2930},{"type":208,"tag":216,"props":3222,"children":3223},{"style":3030},[3224],{"type":213,"value":368},{"type":208,"tag":216,"props":3226,"children":3227},{"style":3070},[3228],{"type":213,"value":1137},{"type":208,"tag":216,"props":3230,"children":3231},{"style":3030},[3232],{"type":213,"value":336},{"type":208,"tag":216,"props":3234,"children":3235},{"class":264,"line":406},[3236,3240,3245,3249,3253,3257,3261],{"type":208,"tag":216,"props":3237,"children":3238},{"style":3065},[3239],{"type":213,"value":269},{"type":208,"tag":216,"props":3241,"children":3242},{"style":3070},[3243],{"type":213,"value":3244}," pending",{"type":208,"tag":216,"props":3246,"children":3247},{"style":3065},[3248],{"type":213,"value":314},{"type":208,"tag":216,"props":3250,"children":3251},{"style":3040},[3252],{"type":213,"value":3212},{"type":208,"tag":216,"props":3254,"children":3255},{"style":3030},[3256],{"type":213,"value":498},{"type":208,"tag":216,"props":3258,"children":3259},{"style":3070},[3260],{"type":213,"value":1024},{"type":208,"tag":216,"props":3262,"children":3263},{"style":3030},[3264],{"type":213,"value":336},{"type":208,"tag":216,"props":3266,"children":3267},{"class":264,"line":412},[3268,3272,3277,3281,3285,3289,3293,3297,3302,3306,3310],{"type":208,"tag":216,"props":3269,"children":3270},{"style":3065},[3271],{"type":213,"value":269},{"type":208,"tag":216,"props":3273,"children":3274},{"style":3070},[3275],{"type":213,"value":3276}," error",{"type":208,"tag":216,"props":3278,"children":3279},{"style":3065},[3280],{"type":213,"value":314},{"type":208,"tag":216,"props":3282,"children":3283},{"style":3040},[3284],{"type":213,"value":3212},{"type":208,"tag":216,"props":3286,"children":3287},{"style":3030},[3288],{"type":213,"value":323},{"type":208,"tag":216,"props":3290,"children":3291},{"style":3070},[3292],{"type":213,"value":2890},{"type":208,"tag":216,"props":3294,"children":3295},{"style":3065},[3296],{"type":213,"value":2821},{"type":208,"tag":216,"props":3298,"children":3299},{"style":3070},[3300],{"type":213,"value":3301}," null",{"type":208,"tag":216,"props":3303,"children":3304},{"style":3030},[3305],{"type":213,"value":368},{"type":208,"tag":216,"props":3307,"children":3308},{"style":3070},[3309],{"type":213,"value":1137},{"type":208,"tag":216,"props":3311,"children":3312},{"style":3030},[3313],{"type":213,"value":336},{"type":208,"tag":216,"props":3315,"children":3316},{"class":264,"line":417},[3317],{"type":208,"tag":216,"props":3318,"children":3319},{"emptyLinePlaceholder":295},[3320],{"type":213,"value":296},{"type":208,"tag":216,"props":3322,"children":3323},{"class":264,"line":423},[3324,3328,3333,3337,3342,3347,3351],{"type":208,"tag":216,"props":3325,"children":3326},{"style":3065},[3327],{"type":213,"value":269},{"type":208,"tag":216,"props":3329,"children":3330},{"style":3070},[3331],{"type":213,"value":3332}," baseURL",{"type":208,"tag":216,"props":3334,"children":3335},{"style":3065},[3336],{"type":213,"value":314},{"type":208,"tag":216,"props":3338,"children":3339},{"style":3040},[3340],{"type":213,"value":3341}," computed",{"type":208,"tag":216,"props":3343,"children":3344},{"style":3030},[3345],{"type":213,"value":3346},"(() ",{"type":208,"tag":216,"props":3348,"children":3349},{"style":3065},[3350],{"type":213,"value":1590},{"type":208,"tag":216,"props":3352,"children":3353},{"style":3030},[3354],{"type":213,"value":3355}," publicConfig.endpoints?.[props.endpoint]?.baseURL)\n",{"type":208,"tag":216,"props":3357,"children":3358},{"class":264,"line":454},[3359],{"type":208,"tag":216,"props":3360,"children":3361},{"emptyLinePlaceholder":295},[3362],{"type":213,"value":296},{"type":208,"tag":216,"props":3364,"children":3365},{"class":264,"line":464},[3366,3370,3374,3379],{"type":208,"tag":216,"props":3367,"children":3368},{"style":3065},[3369],{"type":213,"value":1301},{"type":208,"tag":216,"props":3371,"children":3372},{"style":3065},[3373],{"type":213,"value":1304},{"type":208,"tag":216,"props":3375,"children":3376},{"style":3040},[3377],{"type":213,"value":3378}," load",{"type":208,"tag":216,"props":3380,"children":3381},{"style":3030},[3382],{"type":213,"value":1717},{"type":208,"tag":216,"props":3384,"children":3385},{"class":264,"line":474},[3386,3391,3395],{"type":208,"tag":216,"props":3387,"children":3388},{"style":3030},[3389],{"type":213,"value":3390},"  pending.value ",{"type":208,"tag":216,"props":3392,"children":3393},{"style":3065},[3394],{"type":213,"value":282},{"type":208,"tag":216,"props":3396,"children":3397},{"style":3070},[3398],{"type":213,"value":3399}," true\n",{"type":208,"tag":216,"props":3401,"children":3402},{"class":264,"line":479},[3403,3408,3412],{"type":208,"tag":216,"props":3404,"children":3405},{"style":3030},[3406],{"type":213,"value":3407},"  error.value ",{"type":208,"tag":216,"props":3409,"children":3410},{"style":3065},[3411],{"type":213,"value":282},{"type":208,"tag":216,"props":3413,"children":3414},{"style":3070},[3415],{"type":213,"value":3416}," null\n",{"type":208,"tag":216,"props":3418,"children":3419},{"class":264,"line":484},[3420,3424],{"type":208,"tag":216,"props":3421,"children":3422},{"style":3065},[3423],{"type":213,"value":1327},{"type":208,"tag":216,"props":3425,"children":3426},{"style":3030},[3427],{"type":213,"value":1330},{"type":208,"tag":216,"props":3429,"children":3430},{"class":264,"line":490},[3431,3436,3440,3444,3448,3452,3457,3462],{"type":208,"tag":216,"props":3432,"children":3433},{"style":3030},[3434],{"type":213,"value":3435},"    data.value ",{"type":208,"tag":216,"props":3437,"children":3438},{"style":3065},[3439],{"type":213,"value":282},{"type":208,"tag":216,"props":3441,"children":3442},{"style":3065},[3443],{"type":213,"value":317},{"type":208,"tag":216,"props":3445,"children":3446},{"style":3030},[3447],{"type":213,"value":610},{"type":208,"tag":216,"props":3449,"children":3450},{"style":3040},[3451],{"type":213,"value":613},{"type":208,"tag":216,"props":3453,"children":3454},{"style":3030},[3455],{"type":213,"value":3456},"(props.endpoint)(",{"type":208,"tag":216,"props":3458,"children":3459},{"style":3053},[3460],{"type":213,"value":3461},"'\u002Fprofile'",{"type":208,"tag":216,"props":3463,"children":3464},{"style":3030},[3465],{"type":213,"value":336},{"type":208,"tag":216,"props":3467,"children":3468},{"class":264,"line":1435},[3469],{"type":208,"tag":216,"props":3470,"children":3471},{"style":3030},[3472],{"type":213,"value":1051},{"type":208,"tag":216,"props":3474,"children":3475},{"class":264,"line":1441},[3476,3480],{"type":208,"tag":216,"props":3477,"children":3478},{"style":3065},[3479],{"type":213,"value":1406},{"type":208,"tag":216,"props":3481,"children":3482},{"style":3030},[3483],{"type":213,"value":3484}," (err) {\n",{"type":208,"tag":216,"props":3486,"children":3487},{"class":264,"line":1462},[3488,3493,3497,3502,3507,3512,3517,3522,3526,3531],{"type":208,"tag":216,"props":3489,"children":3490},{"style":3030},[3491],{"type":213,"value":3492},"    error.value ",{"type":208,"tag":216,"props":3494,"children":3495},{"style":3065},[3496],{"type":213,"value":282},{"type":208,"tag":216,"props":3498,"children":3499},{"style":3030},[3500],{"type":213,"value":3501}," err ",{"type":208,"tag":216,"props":3503,"children":3504},{"style":3065},[3505],{"type":213,"value":3506},"instanceof",{"type":208,"tag":216,"props":3508,"children":3509},{"style":3040},[3510],{"type":213,"value":3511}," Error",{"type":208,"tag":216,"props":3513,"children":3514},{"style":3065},[3515],{"type":213,"value":3516}," ?",{"type":208,"tag":216,"props":3518,"children":3519},{"style":3030},[3520],{"type":213,"value":3521}," err.message ",{"type":208,"tag":216,"props":3523,"children":3524},{"style":3065},[3525],{"type":213,"value":1316},{"type":208,"tag":216,"props":3527,"children":3528},{"style":3040},[3529],{"type":213,"value":3530}," String",{"type":208,"tag":216,"props":3532,"children":3533},{"style":3030},[3534],{"type":213,"value":3535},"(err)\n",{"type":208,"tag":216,"props":3537,"children":3538},{"class":264,"line":1484},[3539],{"type":208,"tag":216,"props":3540,"children":3541},{"style":3030},[3542],{"type":213,"value":1051},{"type":208,"tag":216,"props":3544,"children":3545},{"class":264,"line":1498},[3546,3551],{"type":208,"tag":216,"props":3547,"children":3548},{"style":3065},[3549],{"type":213,"value":3550},"  finally",{"type":208,"tag":216,"props":3552,"children":3553},{"style":3030},[3554],{"type":213,"value":1330},{"type":208,"tag":216,"props":3556,"children":3557},{"class":264,"line":1503},[3558,3563,3567],{"type":208,"tag":216,"props":3559,"children":3560},{"style":3030},[3561],{"type":213,"value":3562},"    pending.value ",{"type":208,"tag":216,"props":3564,"children":3565},{"style":3065},[3566],{"type":213,"value":282},{"type":208,"tag":216,"props":3568,"children":3569},{"style":3070},[3570],{"type":213,"value":3571}," false\n",{"type":208,"tag":216,"props":3573,"children":3575},{"class":264,"line":3574},26,[3576],{"type":208,"tag":216,"props":3577,"children":3578},{"style":3030},[3579],{"type":213,"value":1051},{"type":208,"tag":216,"props":3581,"children":3583},{"class":264,"line":3582},27,[3584],{"type":208,"tag":216,"props":3585,"children":3586},{"style":3030},[3587],{"type":213,"value":1428},{"type":208,"tag":216,"props":3589,"children":3591},{"class":264,"line":3590},28,[3592],{"type":208,"tag":216,"props":3593,"children":3594},{"emptyLinePlaceholder":295},[3595],{"type":213,"value":296},{"type":208,"tag":216,"props":3597,"children":3599},{"class":264,"line":3598},29,[3600,3605,3609,3613,3618,3622],{"type":208,"tag":216,"props":3601,"children":3602},{"style":3040},[3603],{"type":213,"value":3604},"watch",{"type":208,"tag":216,"props":3606,"children":3607},{"style":3030},[3608],{"type":213,"value":3346},{"type":208,"tag":216,"props":3610,"children":3611},{"style":3065},[3612],{"type":213,"value":1590},{"type":208,"tag":216,"props":3614,"children":3615},{"style":3030},[3616],{"type":213,"value":3617}," props.endpoint, load, { immediate: ",{"type":208,"tag":216,"props":3619,"children":3620},{"style":3070},[3621],{"type":213,"value":727},{"type":208,"tag":216,"props":3623,"children":3624},{"style":3030},[3625],{"type":213,"value":513},{"type":208,"tag":216,"props":3627,"children":3629},{"class":264,"line":3628},30,[3630,3634,3638],{"type":208,"tag":216,"props":3631,"children":3632},{"style":3030},[3633],{"type":213,"value":1506},{"type":208,"tag":216,"props":3635,"children":3636},{"style":3035},[3637],{"type":213,"value":1257},{"type":208,"tag":216,"props":3639,"children":3640},{"style":3030},[3641],{"type":213,"value":1271},{"type":208,"tag":216,"props":3643,"children":3645},{"class":264,"line":3644},31,[3646],{"type":208,"tag":216,"props":3647,"children":3648},{"emptyLinePlaceholder":295},[3649],{"type":213,"value":296},{"type":208,"tag":216,"props":3651,"children":3653},{"class":264,"line":3652},32,[3654,3658,3663],{"type":208,"tag":216,"props":3655,"children":3656},{"style":3030},[3657],{"type":213,"value":323},{"type":208,"tag":216,"props":3659,"children":3660},{"style":3035},[3661],{"type":213,"value":3662},"template",{"type":208,"tag":216,"props":3664,"children":3665},{"style":3030},[3666],{"type":213,"value":1271},{"type":208,"tag":216,"props":3668,"children":3670},{"class":264,"line":3669},33,[3671,3676,3681,3686,3690,3695],{"type":208,"tag":216,"props":3672,"children":3673},{"style":3030},[3674],{"type":213,"value":3675},"  \u003C",{"type":208,"tag":216,"props":3677,"children":3678},{"style":3035},[3679],{"type":213,"value":3680},"div",{"type":208,"tag":216,"props":3682,"children":3683},{"style":3040},[3684],{"type":213,"value":3685}," class",{"type":208,"tag":216,"props":3687,"children":3688},{"style":3030},[3689],{"type":213,"value":282},{"type":208,"tag":216,"props":3691,"children":3692},{"style":3053},[3693],{"type":213,"value":3694},"\"flex flex-col gap-3\"",{"type":208,"tag":216,"props":3696,"children":3697},{"style":3030},[3698],{"type":213,"value":1271},{"type":208,"tag":216,"props":3700,"children":3702},{"class":264,"line":3701},34,[3703,3708,3712,3716,3720,3725],{"type":208,"tag":216,"props":3704,"children":3705},{"style":3030},[3706],{"type":213,"value":3707},"    \u003C",{"type":208,"tag":216,"props":3709,"children":3710},{"style":3035},[3711],{"type":213,"value":3680},{"type":208,"tag":216,"props":3713,"children":3714},{"style":3040},[3715],{"type":213,"value":3685},{"type":208,"tag":216,"props":3717,"children":3718},{"style":3030},[3719],{"type":213,"value":282},{"type":208,"tag":216,"props":3721,"children":3722},{"style":3053},[3723],{"type":213,"value":3724},"\"flex items-center gap-2 flex-wrap\"",{"type":208,"tag":216,"props":3726,"children":3727},{"style":3030},[3728],{"type":213,"value":1271},{"type":208,"tag":216,"props":3730,"children":3732},{"class":264,"line":3731},35,[3733,3738,3743,3748,3752,3756,3761,3766,3770,3775,3779,3784,3788,3793,3798,3802,3807],{"type":208,"tag":216,"props":3734,"children":3735},{"style":3030},[3736],{"type":213,"value":3737},"      \u003C",{"type":208,"tag":216,"props":3739,"children":3740},{"style":3035},[3741],{"type":213,"value":3742},"UBadge",{"type":208,"tag":216,"props":3744,"children":3745},{"style":3030},[3746],{"type":213,"value":3747}," :",{"type":208,"tag":216,"props":3749,"children":3750},{"style":3040},[3751],{"type":213,"value":1211},{"type":208,"tag":216,"props":3753,"children":3754},{"style":3030},[3755],{"type":213,"value":282},{"type":208,"tag":216,"props":3757,"children":3758},{"style":3053},[3759],{"type":213,"value":3760},"\"",{"type":208,"tag":216,"props":3762,"children":3763},{"style":3030},[3764],{"type":213,"value":3765},"endpoint ",{"type":208,"tag":216,"props":3767,"children":3768},{"style":3065},[3769],{"type":213,"value":2534},{"type":208,"tag":216,"props":3771,"children":3772},{"style":3053},[3773],{"type":213,"value":3774}," 'v2'",{"type":208,"tag":216,"props":3776,"children":3777},{"style":3065},[3778],{"type":213,"value":3516},{"type":208,"tag":216,"props":3780,"children":3781},{"style":3053},[3782],{"type":213,"value":3783}," 'secondary'",{"type":208,"tag":216,"props":3785,"children":3786},{"style":3065},[3787],{"type":213,"value":3747},{"type":208,"tag":216,"props":3789,"children":3790},{"style":3053},[3791],{"type":213,"value":3792}," 'neutral'\"",{"type":208,"tag":216,"props":3794,"children":3795},{"style":3040},[3796],{"type":213,"value":3797}," variant",{"type":208,"tag":216,"props":3799,"children":3800},{"style":3030},[3801],{"type":213,"value":282},{"type":208,"tag":216,"props":3803,"children":3804},{"style":3053},[3805],{"type":213,"value":3806},"\"subtle\"",{"type":208,"tag":216,"props":3808,"children":3809},{"style":3030},[3810],{"type":213,"value":1271},{"type":208,"tag":216,"props":3812,"children":3814},{"class":264,"line":3813},36,[3815],{"type":208,"tag":216,"props":3816,"children":3817},{"style":3030},[3818],{"type":213,"value":3819},"        baseURL: {{ baseURL }}\n",{"type":208,"tag":216,"props":3821,"children":3823},{"class":264,"line":3822},37,[3824,3829,3833],{"type":208,"tag":216,"props":3825,"children":3826},{"style":3030},[3827],{"type":213,"value":3828},"      \u003C\u002F",{"type":208,"tag":216,"props":3830,"children":3831},{"style":3035},[3832],{"type":213,"value":3742},{"type":208,"tag":216,"props":3834,"children":3835},{"style":3030},[3836],{"type":213,"value":1271},{"type":208,"tag":216,"props":3838,"children":3840},{"class":264,"line":3839},38,[3841,3845,3850,3855,3859,3864,3868,3872,3877,3882,3886,3897,3901,3906,3910,3914,3919,3923,3928,3933,3937,3941,3946,3950],{"type":208,"tag":216,"props":3842,"children":3843},{"style":3030},[3844],{"type":213,"value":3737},{"type":208,"tag":216,"props":3846,"children":3847},{"style":3035},[3848],{"type":213,"value":3849},"UButton",{"type":208,"tag":216,"props":3851,"children":3852},{"style":3040},[3853],{"type":213,"value":3854}," size",{"type":208,"tag":216,"props":3856,"children":3857},{"style":3030},[3858],{"type":213,"value":282},{"type":208,"tag":216,"props":3860,"children":3861},{"style":3053},[3862],{"type":213,"value":3863},"\"sm\"",{"type":208,"tag":216,"props":3865,"children":3866},{"style":3040},[3867],{"type":213,"value":3797},{"type":208,"tag":216,"props":3869,"children":3870},{"style":3030},[3871],{"type":213,"value":282},{"type":208,"tag":216,"props":3873,"children":3874},{"style":3053},[3875],{"type":213,"value":3876},"\"outline\"",{"type":208,"tag":216,"props":3878,"children":3879},{"style":3040},[3880],{"type":213,"value":3881}," icon",{"type":208,"tag":216,"props":3883,"children":3884},{"style":3030},[3885],{"type":213,"value":282},{"type":208,"tag":216,"props":3887,"children":3888},{"style":3053},[3889,3895],{"type":208,"tag":3890,"props":3891,"children":3894},"i",{"class":3892,"style":3893},"shiki-icon-highlight","--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Frefresh-cw.svg?color=%23000)",[],{"type":213,"value":3896},"\"i-lucide-refresh-cw\"",{"type":208,"tag":216,"props":3898,"children":3899},{"style":3030},[3900],{"type":213,"value":3747},{"type":208,"tag":216,"props":3902,"children":3903},{"style":3040},[3904],{"type":213,"value":3905},"loading",{"type":208,"tag":216,"props":3907,"children":3908},{"style":3030},[3909],{"type":213,"value":282},{"type":208,"tag":216,"props":3911,"children":3912},{"style":3053},[3913],{"type":213,"value":3760},{"type":208,"tag":216,"props":3915,"children":3916},{"style":3030},[3917],{"type":213,"value":3918},"pending",{"type":208,"tag":216,"props":3920,"children":3921},{"style":3053},[3922],{"type":213,"value":3760},{"type":208,"tag":216,"props":3924,"children":3925},{"style":3030},[3926],{"type":213,"value":3927}," @",{"type":208,"tag":216,"props":3929,"children":3930},{"style":3040},[3931],{"type":213,"value":3932},"click",{"type":208,"tag":216,"props":3934,"children":3935},{"style":3030},[3936],{"type":213,"value":282},{"type":208,"tag":216,"props":3938,"children":3939},{"style":3053},[3940],{"type":213,"value":3760},{"type":208,"tag":216,"props":3942,"children":3943},{"style":3030},[3944],{"type":213,"value":3945},"load",{"type":208,"tag":216,"props":3947,"children":3948},{"style":3053},[3949],{"type":213,"value":3760},{"type":208,"tag":216,"props":3951,"children":3952},{"style":3030},[3953],{"type":213,"value":1271},{"type":208,"tag":216,"props":3955,"children":3957},{"class":264,"line":3956},39,[3958],{"type":208,"tag":216,"props":3959,"children":3960},{"style":3030},[3961],{"type":213,"value":3962},"        刷新\n",{"type":208,"tag":216,"props":3964,"children":3966},{"class":264,"line":3965},40,[3967,3971,3975],{"type":208,"tag":216,"props":3968,"children":3969},{"style":3030},[3970],{"type":213,"value":3828},{"type":208,"tag":216,"props":3972,"children":3973},{"style":3035},[3974],{"type":213,"value":3849},{"type":208,"tag":216,"props":3976,"children":3977},{"style":3030},[3978],{"type":213,"value":1271},{"type":208,"tag":216,"props":3980,"children":3982},{"class":264,"line":3981},41,[3983,3988,3992],{"type":208,"tag":216,"props":3984,"children":3985},{"style":3030},[3986],{"type":213,"value":3987},"    \u003C\u002F",{"type":208,"tag":216,"props":3989,"children":3990},{"style":3035},[3991],{"type":213,"value":3680},{"type":208,"tag":216,"props":3993,"children":3994},{"style":3030},[3995],{"type":213,"value":1271},{"type":208,"tag":216,"props":3997,"children":3999},{"class":264,"line":3998},42,[4000,4004,4008,4012,4016,4021],{"type":208,"tag":216,"props":4001,"children":4002},{"style":3030},[4003],{"type":213,"value":3707},{"type":208,"tag":216,"props":4005,"children":4006},{"style":3035},[4007],{"type":213,"value":209},{"type":208,"tag":216,"props":4009,"children":4010},{"style":3040},[4011],{"type":213,"value":3685},{"type":208,"tag":216,"props":4013,"children":4014},{"style":3030},[4015],{"type":213,"value":282},{"type":208,"tag":216,"props":4017,"children":4018},{"style":3053},[4019],{"type":213,"value":4020},"\"text-xs text-muted\"",{"type":208,"tag":216,"props":4022,"children":4023},{"style":3030},[4024],{"type":213,"value":1271},{"type":208,"tag":216,"props":4026,"children":4028},{"class":264,"line":4027},43,[4029],{"type":208,"tag":216,"props":4030,"children":4031},{"style":3030},[4032],{"type":213,"value":4033},"      $api 默认走 default 端点的 baseURL，$api.use(name) 切换到别名端点后请求改用对应 baseURL。\n",{"type":208,"tag":216,"props":4035,"children":4037},{"class":264,"line":4036},44,[4038,4042,4046],{"type":208,"tag":216,"props":4039,"children":4040},{"style":3030},[4041],{"type":213,"value":3987},{"type":208,"tag":216,"props":4043,"children":4044},{"style":3035},[4045],{"type":213,"value":209},{"type":208,"tag":216,"props":4047,"children":4048},{"style":3030},[4049],{"type":213,"value":1271},{"type":208,"tag":216,"props":4051,"children":4053},{"class":264,"line":4052},45,[4054,4058,4062,4066,4070,4075,4080,4084],{"type":208,"tag":216,"props":4055,"children":4056},{"style":3030},[4057],{"type":213,"value":3707},{"type":208,"tag":216,"props":4059,"children":4060},{"style":3035},[4061],{"type":213,"value":254},{"type":208,"tag":216,"props":4063,"children":4064},{"style":3040},[4065],{"type":213,"value":3685},{"type":208,"tag":216,"props":4067,"children":4068},{"style":3030},[4069],{"type":213,"value":282},{"type":208,"tag":216,"props":4071,"children":4072},{"style":3053},[4073],{"type":213,"value":4074},"\"text-xs p-3 rounded bg-elevated overflow-auto\"",{"type":208,"tag":216,"props":4076,"children":4077},{"style":3030},[4078],{"type":213,"value":4079},">{{ error ? { error } : data }}\u003C\u002F",{"type":208,"tag":216,"props":4081,"children":4082},{"style":3035},[4083],{"type":213,"value":254},{"type":208,"tag":216,"props":4085,"children":4086},{"style":3030},[4087],{"type":213,"value":1271},{"type":208,"tag":216,"props":4089,"children":4091},{"class":264,"line":4090},46,[4092,4097,4101],{"type":208,"tag":216,"props":4093,"children":4094},{"style":3030},[4095],{"type":213,"value":4096},"  \u003C\u002F",{"type":208,"tag":216,"props":4098,"children":4099},{"style":3035},[4100],{"type":213,"value":3680},{"type":208,"tag":216,"props":4102,"children":4103},{"style":3030},[4104],{"type":213,"value":1271},{"type":208,"tag":216,"props":4106,"children":4108},{"class":264,"line":4107},47,[4109,4113,4117],{"type":208,"tag":216,"props":4110,"children":4111},{"style":3030},[4112],{"type":213,"value":1506},{"type":208,"tag":216,"props":4114,"children":4115},{"style":3035},[4116],{"type":213,"value":3662},{"type":208,"tag":216,"props":4118,"children":4119},{"style":3030},[4120],{"type":213,"value":1271},{"type":208,"tag":2933,"props":4122,"children":4123},{},[4124],{"type":213,"value":4125},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":259,"searchDepth":292,"depth":292,"links":4127},[],{"data":4129,"body":4130,"toc":4794},{"title":259,"description":259},{"type":205,"children":4131},[4132,4790],{"type":208,"tag":254,"props":4133,"children":4135},{"className":1245,"code":4134,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst { $api } = useNuxtApp()\n\nconst data = ref\u003Cunknown>(null)\nconst pending = ref(false)\nconst error = ref\u003Cstring | null>(null)\n\nasync function call() {\n  pending.value = true\n  error.value = null\n  try {\n    data.value = await $api.use('v2')('\u002Fprofile')\n  }\n  catch (err) {\n    error.value = err instanceof Error ? err.message : String(err)\n  }\n  finally {\n    pending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-zap\" :loading=\"pending\" @click=\"call\">\n      $api.use('v2')('\u002Fprofile')\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ error ? { error } : data }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4136],{"type":208,"tag":235,"props":4137,"children":4138},{"__ignoreMap":259},[4139,4170,4201,4208,4247,4278,4325,4332,4352,4367,4382,4393,4437,4444,4455,4498,4505,4516,4531,4538,4545,4560,4567,4582,4609,4702,4710,4725,4760,4775],{"type":208,"tag":216,"props":4140,"children":4141},{"class":264,"line":265},[4142,4146,4150,4154,4158,4162,4166],{"type":208,"tag":216,"props":4143,"children":4144},{"style":3030},[4145],{"type":213,"value":323},{"type":208,"tag":216,"props":4147,"children":4148},{"style":3035},[4149],{"type":213,"value":1257},{"type":208,"tag":216,"props":4151,"children":4152},{"style":3040},[4153],{"type":213,"value":1260},{"type":208,"tag":216,"props":4155,"children":4156},{"style":3040},[4157],{"type":213,"value":1263},{"type":208,"tag":216,"props":4159,"children":4160},{"style":3030},[4161],{"type":213,"value":282},{"type":208,"tag":216,"props":4163,"children":4164},{"style":3053},[4165],{"type":213,"value":1268},{"type":208,"tag":216,"props":4167,"children":4168},{"style":3030},[4169],{"type":213,"value":1271},{"type":208,"tag":216,"props":4171,"children":4172},{"class":264,"line":292},[4173,4177,4181,4185,4189,4193,4197],{"type":208,"tag":216,"props":4174,"children":4175},{"style":3065},[4176],{"type":213,"value":269},{"type":208,"tag":216,"props":4178,"children":4179},{"style":3030},[4180],{"type":213,"value":273},{"type":208,"tag":216,"props":4182,"children":4183},{"style":3070},[4184],{"type":213,"value":153},{"type":208,"tag":216,"props":4186,"children":4187},{"style":3030},[4188],{"type":213,"value":279},{"type":208,"tag":216,"props":4190,"children":4191},{"style":3065},[4192],{"type":213,"value":282},{"type":208,"tag":216,"props":4194,"children":4195},{"style":3040},[4196],{"type":213,"value":286},{"type":208,"tag":216,"props":4198,"children":4199},{"style":3030},[4200],{"type":213,"value":289},{"type":208,"tag":216,"props":4202,"children":4203},{"class":264,"line":299},[4204],{"type":208,"tag":216,"props":4205,"children":4206},{"emptyLinePlaceholder":295},[4207],{"type":213,"value":296},{"type":208,"tag":216,"props":4209,"children":4210},{"class":264,"line":306},[4211,4215,4219,4223,4227,4231,4235,4239,4243],{"type":208,"tag":216,"props":4212,"children":4213},{"style":3065},[4214],{"type":213,"value":269},{"type":208,"tag":216,"props":4216,"children":4217},{"style":3070},[4218],{"type":213,"value":2324},{"type":208,"tag":216,"props":4220,"children":4221},{"style":3065},[4222],{"type":213,"value":314},{"type":208,"tag":216,"props":4224,"children":4225},{"style":3040},[4226],{"type":213,"value":3212},{"type":208,"tag":216,"props":4228,"children":4229},{"style":3030},[4230],{"type":213,"value":323},{"type":208,"tag":216,"props":4232,"children":4233},{"style":3070},[4234],{"type":213,"value":2930},{"type":208,"tag":216,"props":4236,"children":4237},{"style":3030},[4238],{"type":213,"value":368},{"type":208,"tag":216,"props":4240,"children":4241},{"style":3070},[4242],{"type":213,"value":1137},{"type":208,"tag":216,"props":4244,"children":4245},{"style":3030},[4246],{"type":213,"value":336},{"type":208,"tag":216,"props":4248,"children":4249},{"class":264,"line":339},[4250,4254,4258,4262,4266,4270,4274],{"type":208,"tag":216,"props":4251,"children":4252},{"style":3065},[4253],{"type":213,"value":269},{"type":208,"tag":216,"props":4255,"children":4256},{"style":3070},[4257],{"type":213,"value":3244},{"type":208,"tag":216,"props":4259,"children":4260},{"style":3065},[4261],{"type":213,"value":314},{"type":208,"tag":216,"props":4263,"children":4264},{"style":3040},[4265],{"type":213,"value":3212},{"type":208,"tag":216,"props":4267,"children":4268},{"style":3030},[4269],{"type":213,"value":498},{"type":208,"tag":216,"props":4271,"children":4272},{"style":3070},[4273],{"type":213,"value":1024},{"type":208,"tag":216,"props":4275,"children":4276},{"style":3030},[4277],{"type":213,"value":336},{"type":208,"tag":216,"props":4279,"children":4280},{"class":264,"line":344},[4281,4285,4289,4293,4297,4301,4305,4309,4313,4317,4321],{"type":208,"tag":216,"props":4282,"children":4283},{"style":3065},[4284],{"type":213,"value":269},{"type":208,"tag":216,"props":4286,"children":4287},{"style":3070},[4288],{"type":213,"value":3276},{"type":208,"tag":216,"props":4290,"children":4291},{"style":3065},[4292],{"type":213,"value":314},{"type":208,"tag":216,"props":4294,"children":4295},{"style":3040},[4296],{"type":213,"value":3212},{"type":208,"tag":216,"props":4298,"children":4299},{"style":3030},[4300],{"type":213,"value":323},{"type":208,"tag":216,"props":4302,"children":4303},{"style":3070},[4304],{"type":213,"value":2890},{"type":208,"tag":216,"props":4306,"children":4307},{"style":3065},[4308],{"type":213,"value":2821},{"type":208,"tag":216,"props":4310,"children":4311},{"style":3070},[4312],{"type":213,"value":3301},{"type":208,"tag":216,"props":4314,"children":4315},{"style":3030},[4316],{"type":213,"value":368},{"type":208,"tag":216,"props":4318,"children":4319},{"style":3070},[4320],{"type":213,"value":1137},{"type":208,"tag":216,"props":4322,"children":4323},{"style":3030},[4324],{"type":213,"value":336},{"type":208,"tag":216,"props":4326,"children":4327},{"class":264,"line":350},[4328],{"type":208,"tag":216,"props":4329,"children":4330},{"emptyLinePlaceholder":295},[4331],{"type":213,"value":296},{"type":208,"tag":216,"props":4333,"children":4334},{"class":264,"line":376},[4335,4339,4343,4348],{"type":208,"tag":216,"props":4336,"children":4337},{"style":3065},[4338],{"type":213,"value":1301},{"type":208,"tag":216,"props":4340,"children":4341},{"style":3065},[4342],{"type":213,"value":1304},{"type":208,"tag":216,"props":4344,"children":4345},{"style":3040},[4346],{"type":213,"value":4347}," call",{"type":208,"tag":216,"props":4349,"children":4350},{"style":3030},[4351],{"type":213,"value":1717},{"type":208,"tag":216,"props":4353,"children":4354},{"class":264,"line":388},[4355,4359,4363],{"type":208,"tag":216,"props":4356,"children":4357},{"style":3030},[4358],{"type":213,"value":3390},{"type":208,"tag":216,"props":4360,"children":4361},{"style":3065},[4362],{"type":213,"value":282},{"type":208,"tag":216,"props":4364,"children":4365},{"style":3070},[4366],{"type":213,"value":3399},{"type":208,"tag":216,"props":4368,"children":4369},{"class":264,"line":406},[4370,4374,4378],{"type":208,"tag":216,"props":4371,"children":4372},{"style":3030},[4373],{"type":213,"value":3407},{"type":208,"tag":216,"props":4375,"children":4376},{"style":3065},[4377],{"type":213,"value":282},{"type":208,"tag":216,"props":4379,"children":4380},{"style":3070},[4381],{"type":213,"value":3416},{"type":208,"tag":216,"props":4383,"children":4384},{"class":264,"line":412},[4385,4389],{"type":208,"tag":216,"props":4386,"children":4387},{"style":3065},[4388],{"type":213,"value":1327},{"type":208,"tag":216,"props":4390,"children":4391},{"style":3030},[4392],{"type":213,"value":1330},{"type":208,"tag":216,"props":4394,"children":4395},{"class":264,"line":417},[4396,4400,4404,4408,4412,4416,4420,4425,4429,4433],{"type":208,"tag":216,"props":4397,"children":4398},{"style":3030},[4399],{"type":213,"value":3435},{"type":208,"tag":216,"props":4401,"children":4402},{"style":3065},[4403],{"type":213,"value":282},{"type":208,"tag":216,"props":4405,"children":4406},{"style":3065},[4407],{"type":213,"value":317},{"type":208,"tag":216,"props":4409,"children":4410},{"style":3030},[4411],{"type":213,"value":610},{"type":208,"tag":216,"props":4413,"children":4414},{"style":3040},[4415],{"type":213,"value":613},{"type":208,"tag":216,"props":4417,"children":4418},{"style":3030},[4419],{"type":213,"value":498},{"type":208,"tag":216,"props":4421,"children":4422},{"style":3053},[4423],{"type":213,"value":4424},"'v2'",{"type":208,"tag":216,"props":4426,"children":4427},{"style":3030},[4428],{"type":213,"value":621},{"type":208,"tag":216,"props":4430,"children":4431},{"style":3053},[4432],{"type":213,"value":3461},{"type":208,"tag":216,"props":4434,"children":4435},{"style":3030},[4436],{"type":213,"value":336},{"type":208,"tag":216,"props":4438,"children":4439},{"class":264,"line":423},[4440],{"type":208,"tag":216,"props":4441,"children":4442},{"style":3030},[4443],{"type":213,"value":1051},{"type":208,"tag":216,"props":4445,"children":4446},{"class":264,"line":454},[4447,4451],{"type":208,"tag":216,"props":4448,"children":4449},{"style":3065},[4450],{"type":213,"value":1406},{"type":208,"tag":216,"props":4452,"children":4453},{"style":3030},[4454],{"type":213,"value":3484},{"type":208,"tag":216,"props":4456,"children":4457},{"class":264,"line":464},[4458,4462,4466,4470,4474,4478,4482,4486,4490,4494],{"type":208,"tag":216,"props":4459,"children":4460},{"style":3030},[4461],{"type":213,"value":3492},{"type":208,"tag":216,"props":4463,"children":4464},{"style":3065},[4465],{"type":213,"value":282},{"type":208,"tag":216,"props":4467,"children":4468},{"style":3030},[4469],{"type":213,"value":3501},{"type":208,"tag":216,"props":4471,"children":4472},{"style":3065},[4473],{"type":213,"value":3506},{"type":208,"tag":216,"props":4475,"children":4476},{"style":3040},[4477],{"type":213,"value":3511},{"type":208,"tag":216,"props":4479,"children":4480},{"style":3065},[4481],{"type":213,"value":3516},{"type":208,"tag":216,"props":4483,"children":4484},{"style":3030},[4485],{"type":213,"value":3521},{"type":208,"tag":216,"props":4487,"children":4488},{"style":3065},[4489],{"type":213,"value":1316},{"type":208,"tag":216,"props":4491,"children":4492},{"style":3040},[4493],{"type":213,"value":3530},{"type":208,"tag":216,"props":4495,"children":4496},{"style":3030},[4497],{"type":213,"value":3535},{"type":208,"tag":216,"props":4499,"children":4500},{"class":264,"line":474},[4501],{"type":208,"tag":216,"props":4502,"children":4503},{"style":3030},[4504],{"type":213,"value":1051},{"type":208,"tag":216,"props":4506,"children":4507},{"class":264,"line":479},[4508,4512],{"type":208,"tag":216,"props":4509,"children":4510},{"style":3065},[4511],{"type":213,"value":3550},{"type":208,"tag":216,"props":4513,"children":4514},{"style":3030},[4515],{"type":213,"value":1330},{"type":208,"tag":216,"props":4517,"children":4518},{"class":264,"line":484},[4519,4523,4527],{"type":208,"tag":216,"props":4520,"children":4521},{"style":3030},[4522],{"type":213,"value":3562},{"type":208,"tag":216,"props":4524,"children":4525},{"style":3065},[4526],{"type":213,"value":282},{"type":208,"tag":216,"props":4528,"children":4529},{"style":3070},[4530],{"type":213,"value":3571},{"type":208,"tag":216,"props":4532,"children":4533},{"class":264,"line":490},[4534],{"type":208,"tag":216,"props":4535,"children":4536},{"style":3030},[4537],{"type":213,"value":1051},{"type":208,"tag":216,"props":4539,"children":4540},{"class":264,"line":1435},[4541],{"type":208,"tag":216,"props":4542,"children":4543},{"style":3030},[4544],{"type":213,"value":1428},{"type":208,"tag":216,"props":4546,"children":4547},{"class":264,"line":1441},[4548,4552,4556],{"type":208,"tag":216,"props":4549,"children":4550},{"style":3030},[4551],{"type":213,"value":1506},{"type":208,"tag":216,"props":4553,"children":4554},{"style":3035},[4555],{"type":213,"value":1257},{"type":208,"tag":216,"props":4557,"children":4558},{"style":3030},[4559],{"type":213,"value":1271},{"type":208,"tag":216,"props":4561,"children":4562},{"class":264,"line":1462},[4563],{"type":208,"tag":216,"props":4564,"children":4565},{"emptyLinePlaceholder":295},[4566],{"type":213,"value":296},{"type":208,"tag":216,"props":4568,"children":4569},{"class":264,"line":1484},[4570,4574,4578],{"type":208,"tag":216,"props":4571,"children":4572},{"style":3030},[4573],{"type":213,"value":323},{"type":208,"tag":216,"props":4575,"children":4576},{"style":3035},[4577],{"type":213,"value":3662},{"type":208,"tag":216,"props":4579,"children":4580},{"style":3030},[4581],{"type":213,"value":1271},{"type":208,"tag":216,"props":4583,"children":4584},{"class":264,"line":1498},[4585,4589,4593,4597,4601,4605],{"type":208,"tag":216,"props":4586,"children":4587},{"style":3030},[4588],{"type":213,"value":3675},{"type":208,"tag":216,"props":4590,"children":4591},{"style":3035},[4592],{"type":213,"value":3680},{"type":208,"tag":216,"props":4594,"children":4595},{"style":3040},[4596],{"type":213,"value":3685},{"type":208,"tag":216,"props":4598,"children":4599},{"style":3030},[4600],{"type":213,"value":282},{"type":208,"tag":216,"props":4602,"children":4603},{"style":3053},[4604],{"type":213,"value":3694},{"type":208,"tag":216,"props":4606,"children":4607},{"style":3030},[4608],{"type":213,"value":1271},{"type":208,"tag":216,"props":4610,"children":4611},{"class":264,"line":1503},[4612,4616,4620,4624,4628,4632,4636,4640,4649,4653,4657,4661,4665,4669,4673,4677,4681,4685,4689,4694,4698],{"type":208,"tag":216,"props":4613,"children":4614},{"style":3030},[4615],{"type":213,"value":3707},{"type":208,"tag":216,"props":4617,"children":4618},{"style":3035},[4619],{"type":213,"value":3849},{"type":208,"tag":216,"props":4621,"children":4622},{"style":3040},[4623],{"type":213,"value":3854},{"type":208,"tag":216,"props":4625,"children":4626},{"style":3030},[4627],{"type":213,"value":282},{"type":208,"tag":216,"props":4629,"children":4630},{"style":3053},[4631],{"type":213,"value":3863},{"type":208,"tag":216,"props":4633,"children":4634},{"style":3040},[4635],{"type":213,"value":3881},{"type":208,"tag":216,"props":4637,"children":4638},{"style":3030},[4639],{"type":213,"value":282},{"type":208,"tag":216,"props":4641,"children":4642},{"style":3053},[4643,4647],{"type":208,"tag":3890,"props":4644,"children":4646},{"class":3892,"style":4645},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fzap.svg?color=%23000)",[],{"type":213,"value":4648},"\"i-lucide-zap\"",{"type":208,"tag":216,"props":4650,"children":4651},{"style":3030},[4652],{"type":213,"value":3747},{"type":208,"tag":216,"props":4654,"children":4655},{"style":3040},[4656],{"type":213,"value":3905},{"type":208,"tag":216,"props":4658,"children":4659},{"style":3030},[4660],{"type":213,"value":282},{"type":208,"tag":216,"props":4662,"children":4663},{"style":3053},[4664],{"type":213,"value":3760},{"type":208,"tag":216,"props":4666,"children":4667},{"style":3030},[4668],{"type":213,"value":3918},{"type":208,"tag":216,"props":4670,"children":4671},{"style":3053},[4672],{"type":213,"value":3760},{"type":208,"tag":216,"props":4674,"children":4675},{"style":3030},[4676],{"type":213,"value":3927},{"type":208,"tag":216,"props":4678,"children":4679},{"style":3040},[4680],{"type":213,"value":3932},{"type":208,"tag":216,"props":4682,"children":4683},{"style":3030},[4684],{"type":213,"value":282},{"type":208,"tag":216,"props":4686,"children":4687},{"style":3053},[4688],{"type":213,"value":3760},{"type":208,"tag":216,"props":4690,"children":4691},{"style":3030},[4692],{"type":213,"value":4693},"call",{"type":208,"tag":216,"props":4695,"children":4696},{"style":3053},[4697],{"type":213,"value":3760},{"type":208,"tag":216,"props":4699,"children":4700},{"style":3030},[4701],{"type":213,"value":1271},{"type":208,"tag":216,"props":4703,"children":4704},{"class":264,"line":3574},[4705],{"type":208,"tag":216,"props":4706,"children":4707},{"style":3030},[4708],{"type":213,"value":4709},"      $api.use('v2')('\u002Fprofile')\n",{"type":208,"tag":216,"props":4711,"children":4712},{"class":264,"line":3582},[4713,4717,4721],{"type":208,"tag":216,"props":4714,"children":4715},{"style":3030},[4716],{"type":213,"value":3987},{"type":208,"tag":216,"props":4718,"children":4719},{"style":3035},[4720],{"type":213,"value":3849},{"type":208,"tag":216,"props":4722,"children":4723},{"style":3030},[4724],{"type":213,"value":1271},{"type":208,"tag":216,"props":4726,"children":4727},{"class":264,"line":3590},[4728,4732,4736,4740,4744,4748,4752,4756],{"type":208,"tag":216,"props":4729,"children":4730},{"style":3030},[4731],{"type":213,"value":3707},{"type":208,"tag":216,"props":4733,"children":4734},{"style":3035},[4735],{"type":213,"value":254},{"type":208,"tag":216,"props":4737,"children":4738},{"style":3040},[4739],{"type":213,"value":3685},{"type":208,"tag":216,"props":4741,"children":4742},{"style":3030},[4743],{"type":213,"value":282},{"type":208,"tag":216,"props":4745,"children":4746},{"style":3053},[4747],{"type":213,"value":4074},{"type":208,"tag":216,"props":4749,"children":4750},{"style":3030},[4751],{"type":213,"value":4079},{"type":208,"tag":216,"props":4753,"children":4754},{"style":3035},[4755],{"type":213,"value":254},{"type":208,"tag":216,"props":4757,"children":4758},{"style":3030},[4759],{"type":213,"value":1271},{"type":208,"tag":216,"props":4761,"children":4762},{"class":264,"line":3598},[4763,4767,4771],{"type":208,"tag":216,"props":4764,"children":4765},{"style":3030},[4766],{"type":213,"value":4096},{"type":208,"tag":216,"props":4768,"children":4769},{"style":3035},[4770],{"type":213,"value":3680},{"type":208,"tag":216,"props":4772,"children":4773},{"style":3030},[4774],{"type":213,"value":1271},{"type":208,"tag":216,"props":4776,"children":4777},{"class":264,"line":3628},[4778,4782,4786],{"type":208,"tag":216,"props":4779,"children":4780},{"style":3030},[4781],{"type":213,"value":1506},{"type":208,"tag":216,"props":4783,"children":4784},{"style":3035},[4785],{"type":213,"value":3662},{"type":208,"tag":216,"props":4787,"children":4788},{"style":3030},[4789],{"type":213,"value":1271},{"type":208,"tag":2933,"props":4791,"children":4792},{},[4793],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":4795},[],{"data":4797,"body":4798,"toc":5100},{"title":259,"description":259},{"type":205,"children":4799},[4800,5096],{"type":208,"tag":254,"props":4801,"children":4803},{"className":1245,"code":4802,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      在 \u003Ccode>nuxt.config\u003C\u002Fcode> 的 \u003Ccode>movk.api.endpoints\u003C\u002Fcode> 注册新别名后即可被 \u003Ccode>endpoint\u003C\u002Fcode> 选项引用。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[4804],{"type":208,"tag":235,"props":4805,"children":4806},{"__ignoreMap":259},[4807,4838,4861,4876,4883,4898,4925,4953,5015,5030,5066,5081],{"type":208,"tag":216,"props":4808,"children":4809},{"class":264,"line":265},[4810,4814,4818,4822,4826,4830,4834],{"type":208,"tag":216,"props":4811,"children":4812},{"style":3030},[4813],{"type":213,"value":323},{"type":208,"tag":216,"props":4815,"children":4816},{"style":3035},[4817],{"type":213,"value":1257},{"type":208,"tag":216,"props":4819,"children":4820},{"style":3040},[4821],{"type":213,"value":1260},{"type":208,"tag":216,"props":4823,"children":4824},{"style":3040},[4825],{"type":213,"value":1263},{"type":208,"tag":216,"props":4827,"children":4828},{"style":3030},[4829],{"type":213,"value":282},{"type":208,"tag":216,"props":4831,"children":4832},{"style":3053},[4833],{"type":213,"value":1268},{"type":208,"tag":216,"props":4835,"children":4836},{"style":3030},[4837],{"type":213,"value":1271},{"type":208,"tag":216,"props":4839,"children":4840},{"class":264,"line":292},[4841,4845,4849,4853,4857],{"type":208,"tag":216,"props":4842,"children":4843},{"style":3065},[4844],{"type":213,"value":269},{"type":208,"tag":216,"props":4846,"children":4847},{"style":3070},[4848],{"type":213,"value":3171},{"type":208,"tag":216,"props":4850,"children":4851},{"style":3065},[4852],{"type":213,"value":314},{"type":208,"tag":216,"props":4854,"children":4855},{"style":3040},[4856],{"type":213,"value":3180},{"type":208,"tag":216,"props":4858,"children":4859},{"style":3030},[4860],{"type":213,"value":3185},{"type":208,"tag":216,"props":4862,"children":4863},{"class":264,"line":299},[4864,4868,4872],{"type":208,"tag":216,"props":4865,"children":4866},{"style":3030},[4867],{"type":213,"value":1506},{"type":208,"tag":216,"props":4869,"children":4870},{"style":3035},[4871],{"type":213,"value":1257},{"type":208,"tag":216,"props":4873,"children":4874},{"style":3030},[4875],{"type":213,"value":1271},{"type":208,"tag":216,"props":4877,"children":4878},{"class":264,"line":306},[4879],{"type":208,"tag":216,"props":4880,"children":4881},{"emptyLinePlaceholder":295},[4882],{"type":213,"value":296},{"type":208,"tag":216,"props":4884,"children":4885},{"class":264,"line":339},[4886,4890,4894],{"type":208,"tag":216,"props":4887,"children":4888},{"style":3030},[4889],{"type":213,"value":323},{"type":208,"tag":216,"props":4891,"children":4892},{"style":3035},[4893],{"type":213,"value":3662},{"type":208,"tag":216,"props":4895,"children":4896},{"style":3030},[4897],{"type":213,"value":1271},{"type":208,"tag":216,"props":4899,"children":4900},{"class":264,"line":344},[4901,4905,4909,4913,4917,4921],{"type":208,"tag":216,"props":4902,"children":4903},{"style":3030},[4904],{"type":213,"value":3675},{"type":208,"tag":216,"props":4906,"children":4907},{"style":3035},[4908],{"type":213,"value":3680},{"type":208,"tag":216,"props":4910,"children":4911},{"style":3040},[4912],{"type":213,"value":3685},{"type":208,"tag":216,"props":4914,"children":4915},{"style":3030},[4916],{"type":213,"value":282},{"type":208,"tag":216,"props":4918,"children":4919},{"style":3053},[4920],{"type":213,"value":3694},{"type":208,"tag":216,"props":4922,"children":4923},{"style":3030},[4924],{"type":213,"value":1271},{"type":208,"tag":216,"props":4926,"children":4927},{"class":264,"line":350},[4928,4932,4936,4940,4944,4949],{"type":208,"tag":216,"props":4929,"children":4930},{"style":3030},[4931],{"type":213,"value":3707},{"type":208,"tag":216,"props":4933,"children":4934},{"style":3035},[4935],{"type":213,"value":209},{"type":208,"tag":216,"props":4937,"children":4938},{"style":3040},[4939],{"type":213,"value":3685},{"type":208,"tag":216,"props":4941,"children":4942},{"style":3030},[4943],{"type":213,"value":282},{"type":208,"tag":216,"props":4945,"children":4946},{"style":3053},[4947],{"type":213,"value":4948},"\"text-sm text-muted\"",{"type":208,"tag":216,"props":4950,"children":4951},{"style":3030},[4952],{"type":213,"value":1271},{"type":208,"tag":216,"props":4954,"children":4955},{"class":264,"line":376},[4956,4961,4965,4970,4974,4979,4983,4988,4992,4997,5001,5006,5010],{"type":208,"tag":216,"props":4957,"children":4958},{"style":3030},[4959],{"type":213,"value":4960},"      在 \u003C",{"type":208,"tag":216,"props":4962,"children":4963},{"style":3035},[4964],{"type":213,"value":235},{"type":208,"tag":216,"props":4966,"children":4967},{"style":3030},[4968],{"type":213,"value":4969},">nuxt.config\u003C\u002F",{"type":208,"tag":216,"props":4971,"children":4972},{"style":3035},[4973],{"type":213,"value":235},{"type":208,"tag":216,"props":4975,"children":4976},{"style":3030},[4977],{"type":213,"value":4978},"> 的 \u003C",{"type":208,"tag":216,"props":4980,"children":4981},{"style":3035},[4982],{"type":213,"value":235},{"type":208,"tag":216,"props":4984,"children":4985},{"style":3030},[4986],{"type":213,"value":4987},">movk.api.endpoints\u003C\u002F",{"type":208,"tag":216,"props":4989,"children":4990},{"style":3035},[4991],{"type":213,"value":235},{"type":208,"tag":216,"props":4993,"children":4994},{"style":3030},[4995],{"type":213,"value":4996},"> 注册新别名后即可被 \u003C",{"type":208,"tag":216,"props":4998,"children":4999},{"style":3035},[5000],{"type":213,"value":235},{"type":208,"tag":216,"props":5002,"children":5003},{"style":3030},[5004],{"type":213,"value":5005},">endpoint\u003C\u002F",{"type":208,"tag":216,"props":5007,"children":5008},{"style":3035},[5009],{"type":213,"value":235},{"type":208,"tag":216,"props":5011,"children":5012},{"style":3030},[5013],{"type":213,"value":5014},"> 选项引用。\n",{"type":208,"tag":216,"props":5016,"children":5017},{"class":264,"line":388},[5018,5022,5026],{"type":208,"tag":216,"props":5019,"children":5020},{"style":3030},[5021],{"type":213,"value":3987},{"type":208,"tag":216,"props":5023,"children":5024},{"style":3035},[5025],{"type":213,"value":209},{"type":208,"tag":216,"props":5027,"children":5028},{"style":3030},[5029],{"type":213,"value":1271},{"type":208,"tag":216,"props":5031,"children":5032},{"class":264,"line":406},[5033,5037,5041,5045,5049,5053,5058,5062],{"type":208,"tag":216,"props":5034,"children":5035},{"style":3030},[5036],{"type":213,"value":3707},{"type":208,"tag":216,"props":5038,"children":5039},{"style":3035},[5040],{"type":213,"value":254},{"type":208,"tag":216,"props":5042,"children":5043},{"style":3040},[5044],{"type":213,"value":3685},{"type":208,"tag":216,"props":5046,"children":5047},{"style":3030},[5048],{"type":213,"value":282},{"type":208,"tag":216,"props":5050,"children":5051},{"style":3053},[5052],{"type":213,"value":4074},{"type":208,"tag":216,"props":5054,"children":5055},{"style":3030},[5056],{"type":213,"value":5057},">{{ { defaultEndpoint: publicConfig.defaultEndpoint, endpoints: publicConfig.endpoints } }}\u003C\u002F",{"type":208,"tag":216,"props":5059,"children":5060},{"style":3035},[5061],{"type":213,"value":254},{"type":208,"tag":216,"props":5063,"children":5064},{"style":3030},[5065],{"type":213,"value":1271},{"type":208,"tag":216,"props":5067,"children":5068},{"class":264,"line":412},[5069,5073,5077],{"type":208,"tag":216,"props":5070,"children":5071},{"style":3030},[5072],{"type":213,"value":4096},{"type":208,"tag":216,"props":5074,"children":5075},{"style":3035},[5076],{"type":213,"value":3680},{"type":208,"tag":216,"props":5078,"children":5079},{"style":3030},[5080],{"type":213,"value":1271},{"type":208,"tag":216,"props":5082,"children":5083},{"class":264,"line":417},[5084,5088,5092],{"type":208,"tag":216,"props":5085,"children":5086},{"style":3030},[5087],{"type":213,"value":1506},{"type":208,"tag":216,"props":5089,"children":5090},{"style":3035},[5091],{"type":213,"value":3662},{"type":208,"tag":216,"props":5093,"children":5094},{"style":3030},[5095],{"type":213,"value":1271},{"type":208,"tag":2933,"props":5097,"children":5098},{},[5099],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":5101},[],{"data":5103,"body":5104,"toc":6306},{"title":259,"description":259},{"type":205,"children":5105},[5106,6302],{"type":208,"tag":3015,"props":5107,"children":5108},{},[5109],{"type":208,"tag":254,"props":5110,"children":5112},{"className":1245,"code":5111,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst { session, loggedIn, fetch: refreshSession } = useUserSession()\nconst { $api } = useNuxtApp()\nconst publicConfig = useRuntimeConfig().public.movkApi\n\nconst loginPending = ref(false)\nconst logoutPending = ref(false)\n\nasync function login() {\n  loginPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogin', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    loginPending.value = false\n  }\n}\n\nasync function logout() {\n  logoutPending.value = true\n  try {\n    await $api('\u002Fdemo\u002Flogout', { method: 'POST' })\n    await refreshSession()\n  }\n  finally {\n    logoutPending.value = false\n  }\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-2 flex-wrap\">\n      \u003CUBadge :color=\"loggedIn ? 'success' : 'neutral'\" variant=\"subtle\">\n        {{ loggedIn ? '已登录' : '未登录' }}\n      \u003C\u002FUBadge>\n      \u003CUButton\n        v-if=\"!loggedIn\"\n        size=\"sm\"\n        :loading=\"loginPending\"\n        icon=\"i-lucide-log-in\"\n        @click=\"login\"\n      >\n        登录（写入 session.token）\n      \u003C\u002FUButton>\n      \u003CUButton\n        v-else\n        size=\"sm\"\n        color=\"error\"\n        variant=\"outline\"\n        :loading=\"logoutPending\"\n        icon=\"i-lucide-log-out\"\n        @click=\"logout\"\n      >\n        登出（清除 session）\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ session }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[5113],{"type":208,"tag":235,"props":5114,"children":5115},{"__ignoreMap":259},[5116,5147,5207,5238,5261,5268,5300,5332,5339,5359,5375,5386,5418,5434,5441,5452,5468,5475,5482,5489,5509,5525,5536,5568,5583,5590,5601,5617,5624,5631,5646,5653,5668,5695,5722,5788,5796,5811,5823,5853,5870,5899,5920,5949,5957,5965,5980,5991,6000,6016,6034,6052,6081,6102,6131,6139,6148,6164,6180,6208,6217,6233,6270,6286],{"type":208,"tag":216,"props":5117,"children":5118},{"class":264,"line":265},[5119,5123,5127,5131,5135,5139,5143],{"type":208,"tag":216,"props":5120,"children":5121},{"style":3030},[5122],{"type":213,"value":323},{"type":208,"tag":216,"props":5124,"children":5125},{"style":3035},[5126],{"type":213,"value":1257},{"type":208,"tag":216,"props":5128,"children":5129},{"style":3040},[5130],{"type":213,"value":1260},{"type":208,"tag":216,"props":5132,"children":5133},{"style":3040},[5134],{"type":213,"value":1263},{"type":208,"tag":216,"props":5136,"children":5137},{"style":3030},[5138],{"type":213,"value":282},{"type":208,"tag":216,"props":5140,"children":5141},{"style":3053},[5142],{"type":213,"value":1268},{"type":208,"tag":216,"props":5144,"children":5145},{"style":3030},[5146],{"type":213,"value":1271},{"type":208,"tag":216,"props":5148,"children":5149},{"class":264,"line":292},[5150,5154,5158,5163,5167,5172,5176,5181,5185,5190,5194,5198,5203],{"type":208,"tag":216,"props":5151,"children":5152},{"style":3065},[5153],{"type":213,"value":269},{"type":208,"tag":216,"props":5155,"children":5156},{"style":3030},[5157],{"type":213,"value":273},{"type":208,"tag":216,"props":5159,"children":5160},{"style":3070},[5161],{"type":213,"value":5162},"session",{"type":208,"tag":216,"props":5164,"children":5165},{"style":3030},[5166],{"type":213,"value":244},{"type":208,"tag":216,"props":5168,"children":5169},{"style":3070},[5170],{"type":213,"value":5171},"loggedIn",{"type":208,"tag":216,"props":5173,"children":5174},{"style":3030},[5175],{"type":213,"value":244},{"type":208,"tag":216,"props":5177,"children":5178},{"style":3093},[5179],{"type":213,"value":5180},"fetch",{"type":208,"tag":216,"props":5182,"children":5183},{"style":3030},[5184],{"type":213,"value":913},{"type":208,"tag":216,"props":5186,"children":5187},{"style":3070},[5188],{"type":213,"value":5189},"refreshSession",{"type":208,"tag":216,"props":5191,"children":5192},{"style":3030},[5193],{"type":213,"value":279},{"type":208,"tag":216,"props":5195,"children":5196},{"style":3065},[5197],{"type":213,"value":282},{"type":208,"tag":216,"props":5199,"children":5200},{"style":3040},[5201],{"type":213,"value":5202}," useUserSession",{"type":208,"tag":216,"props":5204,"children":5205},{"style":3030},[5206],{"type":213,"value":289},{"type":208,"tag":216,"props":5208,"children":5209},{"class":264,"line":299},[5210,5214,5218,5222,5226,5230,5234],{"type":208,"tag":216,"props":5211,"children":5212},{"style":3065},[5213],{"type":213,"value":269},{"type":208,"tag":216,"props":5215,"children":5216},{"style":3030},[5217],{"type":213,"value":273},{"type":208,"tag":216,"props":5219,"children":5220},{"style":3070},[5221],{"type":213,"value":153},{"type":208,"tag":216,"props":5223,"children":5224},{"style":3030},[5225],{"type":213,"value":279},{"type":208,"tag":216,"props":5227,"children":5228},{"style":3065},[5229],{"type":213,"value":282},{"type":208,"tag":216,"props":5231,"children":5232},{"style":3040},[5233],{"type":213,"value":286},{"type":208,"tag":216,"props":5235,"children":5236},{"style":3030},[5237],{"type":213,"value":289},{"type":208,"tag":216,"props":5239,"children":5240},{"class":264,"line":306},[5241,5245,5249,5253,5257],{"type":208,"tag":216,"props":5242,"children":5243},{"style":3065},[5244],{"type":213,"value":269},{"type":208,"tag":216,"props":5246,"children":5247},{"style":3070},[5248],{"type":213,"value":3171},{"type":208,"tag":216,"props":5250,"children":5251},{"style":3065},[5252],{"type":213,"value":314},{"type":208,"tag":216,"props":5254,"children":5255},{"style":3040},[5256],{"type":213,"value":3180},{"type":208,"tag":216,"props":5258,"children":5259},{"style":3030},[5260],{"type":213,"value":3185},{"type":208,"tag":216,"props":5262,"children":5263},{"class":264,"line":339},[5264],{"type":208,"tag":216,"props":5265,"children":5266},{"emptyLinePlaceholder":295},[5267],{"type":213,"value":296},{"type":208,"tag":216,"props":5269,"children":5270},{"class":264,"line":344},[5271,5275,5280,5284,5288,5292,5296],{"type":208,"tag":216,"props":5272,"children":5273},{"style":3065},[5274],{"type":213,"value":269},{"type":208,"tag":216,"props":5276,"children":5277},{"style":3070},[5278],{"type":213,"value":5279}," loginPending",{"type":208,"tag":216,"props":5281,"children":5282},{"style":3065},[5283],{"type":213,"value":314},{"type":208,"tag":216,"props":5285,"children":5286},{"style":3040},[5287],{"type":213,"value":3212},{"type":208,"tag":216,"props":5289,"children":5290},{"style":3030},[5291],{"type":213,"value":498},{"type":208,"tag":216,"props":5293,"children":5294},{"style":3070},[5295],{"type":213,"value":1024},{"type":208,"tag":216,"props":5297,"children":5298},{"style":3030},[5299],{"type":213,"value":336},{"type":208,"tag":216,"props":5301,"children":5302},{"class":264,"line":350},[5303,5307,5312,5316,5320,5324,5328],{"type":208,"tag":216,"props":5304,"children":5305},{"style":3065},[5306],{"type":213,"value":269},{"type":208,"tag":216,"props":5308,"children":5309},{"style":3070},[5310],{"type":213,"value":5311}," logoutPending",{"type":208,"tag":216,"props":5313,"children":5314},{"style":3065},[5315],{"type":213,"value":314},{"type":208,"tag":216,"props":5317,"children":5318},{"style":3040},[5319],{"type":213,"value":3212},{"type":208,"tag":216,"props":5321,"children":5322},{"style":3030},[5323],{"type":213,"value":498},{"type":208,"tag":216,"props":5325,"children":5326},{"style":3070},[5327],{"type":213,"value":1024},{"type":208,"tag":216,"props":5329,"children":5330},{"style":3030},[5331],{"type":213,"value":336},{"type":208,"tag":216,"props":5333,"children":5334},{"class":264,"line":376},[5335],{"type":208,"tag":216,"props":5336,"children":5337},{"emptyLinePlaceholder":295},[5338],{"type":213,"value":296},{"type":208,"tag":216,"props":5340,"children":5341},{"class":264,"line":388},[5342,5346,5350,5355],{"type":208,"tag":216,"props":5343,"children":5344},{"style":3065},[5345],{"type":213,"value":1301},{"type":208,"tag":216,"props":5347,"children":5348},{"style":3065},[5349],{"type":213,"value":1304},{"type":208,"tag":216,"props":5351,"children":5352},{"style":3040},[5353],{"type":213,"value":5354}," login",{"type":208,"tag":216,"props":5356,"children":5357},{"style":3030},[5358],{"type":213,"value":1717},{"type":208,"tag":216,"props":5360,"children":5361},{"class":264,"line":406},[5362,5367,5371],{"type":208,"tag":216,"props":5363,"children":5364},{"style":3030},[5365],{"type":213,"value":5366},"  loginPending.value ",{"type":208,"tag":216,"props":5368,"children":5369},{"style":3065},[5370],{"type":213,"value":282},{"type":208,"tag":216,"props":5372,"children":5373},{"style":3070},[5374],{"type":213,"value":3399},{"type":208,"tag":216,"props":5376,"children":5377},{"class":264,"line":412},[5378,5382],{"type":208,"tag":216,"props":5379,"children":5380},{"style":3065},[5381],{"type":213,"value":1327},{"type":208,"tag":216,"props":5383,"children":5384},{"style":3030},[5385],{"type":213,"value":1330},{"type":208,"tag":216,"props":5387,"children":5388},{"class":264,"line":417},[5389,5393,5397,5401,5406,5410,5414],{"type":208,"tag":216,"props":5390,"children":5391},{"style":3065},[5392],{"type":213,"value":1906},{"type":208,"tag":216,"props":5394,"children":5395},{"style":3040},[5396],{"type":213,"value":320},{"type":208,"tag":216,"props":5398,"children":5399},{"style":3030},[5400],{"type":213,"value":498},{"type":208,"tag":216,"props":5402,"children":5403},{"style":3053},[5404],{"type":213,"value":5405},"'\u002Fdemo\u002Flogin'",{"type":208,"tag":216,"props":5407,"children":5408},{"style":3030},[5409],{"type":213,"value":507},{"type":208,"tag":216,"props":5411,"children":5412},{"style":3053},[5413],{"type":213,"value":382},{"type":208,"tag":216,"props":5415,"children":5416},{"style":3030},[5417],{"type":213,"value":513},{"type":208,"tag":216,"props":5419,"children":5420},{"class":264,"line":423},[5421,5425,5430],{"type":208,"tag":216,"props":5422,"children":5423},{"style":3065},[5424],{"type":213,"value":1906},{"type":208,"tag":216,"props":5426,"children":5427},{"style":3040},[5428],{"type":213,"value":5429}," refreshSession",{"type":208,"tag":216,"props":5431,"children":5432},{"style":3030},[5433],{"type":213,"value":289},{"type":208,"tag":216,"props":5435,"children":5436},{"class":264,"line":454},[5437],{"type":208,"tag":216,"props":5438,"children":5439},{"style":3030},[5440],{"type":213,"value":1051},{"type":208,"tag":216,"props":5442,"children":5443},{"class":264,"line":464},[5444,5448],{"type":208,"tag":216,"props":5445,"children":5446},{"style":3065},[5447],{"type":213,"value":3550},{"type":208,"tag":216,"props":5449,"children":5450},{"style":3030},[5451],{"type":213,"value":1330},{"type":208,"tag":216,"props":5453,"children":5454},{"class":264,"line":474},[5455,5460,5464],{"type":208,"tag":216,"props":5456,"children":5457},{"style":3030},[5458],{"type":213,"value":5459},"    loginPending.value ",{"type":208,"tag":216,"props":5461,"children":5462},{"style":3065},[5463],{"type":213,"value":282},{"type":208,"tag":216,"props":5465,"children":5466},{"style":3070},[5467],{"type":213,"value":3571},{"type":208,"tag":216,"props":5469,"children":5470},{"class":264,"line":479},[5471],{"type":208,"tag":216,"props":5472,"children":5473},{"style":3030},[5474],{"type":213,"value":1051},{"type":208,"tag":216,"props":5476,"children":5477},{"class":264,"line":484},[5478],{"type":208,"tag":216,"props":5479,"children":5480},{"style":3030},[5481],{"type":213,"value":1428},{"type":208,"tag":216,"props":5483,"children":5484},{"class":264,"line":490},[5485],{"type":208,"tag":216,"props":5486,"children":5487},{"emptyLinePlaceholder":295},[5488],{"type":213,"value":296},{"type":208,"tag":216,"props":5490,"children":5491},{"class":264,"line":1435},[5492,5496,5500,5505],{"type":208,"tag":216,"props":5493,"children":5494},{"style":3065},[5495],{"type":213,"value":1301},{"type":208,"tag":216,"props":5497,"children":5498},{"style":3065},[5499],{"type":213,"value":1304},{"type":208,"tag":216,"props":5501,"children":5502},{"style":3040},[5503],{"type":213,"value":5504}," logout",{"type":208,"tag":216,"props":5506,"children":5507},{"style":3030},[5508],{"type":213,"value":1717},{"type":208,"tag":216,"props":5510,"children":5511},{"class":264,"line":1441},[5512,5517,5521],{"type":208,"tag":216,"props":5513,"children":5514},{"style":3030},[5515],{"type":213,"value":5516},"  logoutPending.value ",{"type":208,"tag":216,"props":5518,"children":5519},{"style":3065},[5520],{"type":213,"value":282},{"type":208,"tag":216,"props":5522,"children":5523},{"style":3070},[5524],{"type":213,"value":3399},{"type":208,"tag":216,"props":5526,"children":5527},{"class":264,"line":1462},[5528,5532],{"type":208,"tag":216,"props":5529,"children":5530},{"style":3065},[5531],{"type":213,"value":1327},{"type":208,"tag":216,"props":5533,"children":5534},{"style":3030},[5535],{"type":213,"value":1330},{"type":208,"tag":216,"props":5537,"children":5538},{"class":264,"line":1484},[5539,5543,5547,5551,5556,5560,5564],{"type":208,"tag":216,"props":5540,"children":5541},{"style":3065},[5542],{"type":213,"value":1906},{"type":208,"tag":216,"props":5544,"children":5545},{"style":3040},[5546],{"type":213,"value":320},{"type":208,"tag":216,"props":5548,"children":5549},{"style":3030},[5550],{"type":213,"value":498},{"type":208,"tag":216,"props":5552,"children":5553},{"style":3053},[5554],{"type":213,"value":5555},"'\u002Fdemo\u002Flogout'",{"type":208,"tag":216,"props":5557,"children":5558},{"style":3030},[5559],{"type":213,"value":507},{"type":208,"tag":216,"props":5561,"children":5562},{"style":3053},[5563],{"type":213,"value":382},{"type":208,"tag":216,"props":5565,"children":5566},{"style":3030},[5567],{"type":213,"value":513},{"type":208,"tag":216,"props":5569,"children":5570},{"class":264,"line":1498},[5571,5575,5579],{"type":208,"tag":216,"props":5572,"children":5573},{"style":3065},[5574],{"type":213,"value":1906},{"type":208,"tag":216,"props":5576,"children":5577},{"style":3040},[5578],{"type":213,"value":5429},{"type":208,"tag":216,"props":5580,"children":5581},{"style":3030},[5582],{"type":213,"value":289},{"type":208,"tag":216,"props":5584,"children":5585},{"class":264,"line":1503},[5586],{"type":208,"tag":216,"props":5587,"children":5588},{"style":3030},[5589],{"type":213,"value":1051},{"type":208,"tag":216,"props":5591,"children":5592},{"class":264,"line":3574},[5593,5597],{"type":208,"tag":216,"props":5594,"children":5595},{"style":3065},[5596],{"type":213,"value":3550},{"type":208,"tag":216,"props":5598,"children":5599},{"style":3030},[5600],{"type":213,"value":1330},{"type":208,"tag":216,"props":5602,"children":5603},{"class":264,"line":3582},[5604,5609,5613],{"type":208,"tag":216,"props":5605,"children":5606},{"style":3030},[5607],{"type":213,"value":5608},"    logoutPending.value ",{"type":208,"tag":216,"props":5610,"children":5611},{"style":3065},[5612],{"type":213,"value":282},{"type":208,"tag":216,"props":5614,"children":5615},{"style":3070},[5616],{"type":213,"value":3571},{"type":208,"tag":216,"props":5618,"children":5619},{"class":264,"line":3590},[5620],{"type":208,"tag":216,"props":5621,"children":5622},{"style":3030},[5623],{"type":213,"value":1051},{"type":208,"tag":216,"props":5625,"children":5626},{"class":264,"line":3598},[5627],{"type":208,"tag":216,"props":5628,"children":5629},{"style":3030},[5630],{"type":213,"value":1428},{"type":208,"tag":216,"props":5632,"children":5633},{"class":264,"line":3628},[5634,5638,5642],{"type":208,"tag":216,"props":5635,"children":5636},{"style":3030},[5637],{"type":213,"value":1506},{"type":208,"tag":216,"props":5639,"children":5640},{"style":3035},[5641],{"type":213,"value":1257},{"type":208,"tag":216,"props":5643,"children":5644},{"style":3030},[5645],{"type":213,"value":1271},{"type":208,"tag":216,"props":5647,"children":5648},{"class":264,"line":3644},[5649],{"type":208,"tag":216,"props":5650,"children":5651},{"emptyLinePlaceholder":295},[5652],{"type":213,"value":296},{"type":208,"tag":216,"props":5654,"children":5655},{"class":264,"line":3652},[5656,5660,5664],{"type":208,"tag":216,"props":5657,"children":5658},{"style":3030},[5659],{"type":213,"value":323},{"type":208,"tag":216,"props":5661,"children":5662},{"style":3035},[5663],{"type":213,"value":3662},{"type":208,"tag":216,"props":5665,"children":5666},{"style":3030},[5667],{"type":213,"value":1271},{"type":208,"tag":216,"props":5669,"children":5670},{"class":264,"line":3669},[5671,5675,5679,5683,5687,5691],{"type":208,"tag":216,"props":5672,"children":5673},{"style":3030},[5674],{"type":213,"value":3675},{"type":208,"tag":216,"props":5676,"children":5677},{"style":3035},[5678],{"type":213,"value":3680},{"type":208,"tag":216,"props":5680,"children":5681},{"style":3040},[5682],{"type":213,"value":3685},{"type":208,"tag":216,"props":5684,"children":5685},{"style":3030},[5686],{"type":213,"value":282},{"type":208,"tag":216,"props":5688,"children":5689},{"style":3053},[5690],{"type":213,"value":3694},{"type":208,"tag":216,"props":5692,"children":5693},{"style":3030},[5694],{"type":213,"value":1271},{"type":208,"tag":216,"props":5696,"children":5697},{"class":264,"line":3701},[5698,5702,5706,5710,5714,5718],{"type":208,"tag":216,"props":5699,"children":5700},{"style":3030},[5701],{"type":213,"value":3707},{"type":208,"tag":216,"props":5703,"children":5704},{"style":3035},[5705],{"type":213,"value":3680},{"type":208,"tag":216,"props":5707,"children":5708},{"style":3040},[5709],{"type":213,"value":3685},{"type":208,"tag":216,"props":5711,"children":5712},{"style":3030},[5713],{"type":213,"value":282},{"type":208,"tag":216,"props":5715,"children":5716},{"style":3053},[5717],{"type":213,"value":3724},{"type":208,"tag":216,"props":5719,"children":5720},{"style":3030},[5721],{"type":213,"value":1271},{"type":208,"tag":216,"props":5723,"children":5724},{"class":264,"line":3731},[5725,5729,5733,5737,5741,5745,5749,5754,5759,5764,5768,5772,5776,5780,5784],{"type":208,"tag":216,"props":5726,"children":5727},{"style":3030},[5728],{"type":213,"value":3737},{"type":208,"tag":216,"props":5730,"children":5731},{"style":3035},[5732],{"type":213,"value":3742},{"type":208,"tag":216,"props":5734,"children":5735},{"style":3030},[5736],{"type":213,"value":3747},{"type":208,"tag":216,"props":5738,"children":5739},{"style":3040},[5740],{"type":213,"value":1211},{"type":208,"tag":216,"props":5742,"children":5743},{"style":3030},[5744],{"type":213,"value":282},{"type":208,"tag":216,"props":5746,"children":5747},{"style":3053},[5748],{"type":213,"value":3760},{"type":208,"tag":216,"props":5750,"children":5751},{"style":3030},[5752],{"type":213,"value":5753},"loggedIn ",{"type":208,"tag":216,"props":5755,"children":5756},{"style":3065},[5757],{"type":213,"value":5758},"?",{"type":208,"tag":216,"props":5760,"children":5761},{"style":3053},[5762],{"type":213,"value":5763}," 'success'",{"type":208,"tag":216,"props":5765,"children":5766},{"style":3065},[5767],{"type":213,"value":3747},{"type":208,"tag":216,"props":5769,"children":5770},{"style":3053},[5771],{"type":213,"value":3792},{"type":208,"tag":216,"props":5773,"children":5774},{"style":3040},[5775],{"type":213,"value":3797},{"type":208,"tag":216,"props":5777,"children":5778},{"style":3030},[5779],{"type":213,"value":282},{"type":208,"tag":216,"props":5781,"children":5782},{"style":3053},[5783],{"type":213,"value":3806},{"type":208,"tag":216,"props":5785,"children":5786},{"style":3030},[5787],{"type":213,"value":1271},{"type":208,"tag":216,"props":5789,"children":5790},{"class":264,"line":3813},[5791],{"type":208,"tag":216,"props":5792,"children":5793},{"style":3030},[5794],{"type":213,"value":5795},"        {{ loggedIn ? '已登录' : '未登录' }}\n",{"type":208,"tag":216,"props":5797,"children":5798},{"class":264,"line":3822},[5799,5803,5807],{"type":208,"tag":216,"props":5800,"children":5801},{"style":3030},[5802],{"type":213,"value":3828},{"type":208,"tag":216,"props":5804,"children":5805},{"style":3035},[5806],{"type":213,"value":3742},{"type":208,"tag":216,"props":5808,"children":5809},{"style":3030},[5810],{"type":213,"value":1271},{"type":208,"tag":216,"props":5812,"children":5813},{"class":264,"line":3839},[5814,5818],{"type":208,"tag":216,"props":5815,"children":5816},{"style":3030},[5817],{"type":213,"value":3737},{"type":208,"tag":216,"props":5819,"children":5820},{"style":3035},[5821],{"type":213,"value":5822},"UButton\n",{"type":208,"tag":216,"props":5824,"children":5825},{"class":264,"line":3956},[5826,5831,5835,5839,5844,5848],{"type":208,"tag":216,"props":5827,"children":5828},{"style":3065},[5829],{"type":213,"value":5830},"        v-if",{"type":208,"tag":216,"props":5832,"children":5833},{"style":3030},[5834],{"type":213,"value":282},{"type":208,"tag":216,"props":5836,"children":5837},{"style":3053},[5838],{"type":213,"value":3760},{"type":208,"tag":216,"props":5840,"children":5841},{"style":3065},[5842],{"type":213,"value":5843},"!",{"type":208,"tag":216,"props":5845,"children":5846},{"style":3030},[5847],{"type":213,"value":5171},{"type":208,"tag":216,"props":5849,"children":5850},{"style":3053},[5851],{"type":213,"value":5852},"\"\n",{"type":208,"tag":216,"props":5854,"children":5855},{"class":264,"line":3965},[5856,5861,5865],{"type":208,"tag":216,"props":5857,"children":5858},{"style":3040},[5859],{"type":213,"value":5860},"        size",{"type":208,"tag":216,"props":5862,"children":5863},{"style":3030},[5864],{"type":213,"value":282},{"type":208,"tag":216,"props":5866,"children":5867},{"style":3053},[5868],{"type":213,"value":5869},"\"sm\"\n",{"type":208,"tag":216,"props":5871,"children":5872},{"class":264,"line":3981},[5873,5878,5882,5886,5890,5895],{"type":208,"tag":216,"props":5874,"children":5875},{"style":3030},[5876],{"type":213,"value":5877},"        :",{"type":208,"tag":216,"props":5879,"children":5880},{"style":3040},[5881],{"type":213,"value":3905},{"type":208,"tag":216,"props":5883,"children":5884},{"style":3030},[5885],{"type":213,"value":282},{"type":208,"tag":216,"props":5887,"children":5888},{"style":3053},[5889],{"type":213,"value":3760},{"type":208,"tag":216,"props":5891,"children":5892},{"style":3030},[5893],{"type":213,"value":5894},"loginPending",{"type":208,"tag":216,"props":5896,"children":5897},{"style":3053},[5898],{"type":213,"value":5852},{"type":208,"tag":216,"props":5900,"children":5901},{"class":264,"line":3998},[5902,5907,5911],{"type":208,"tag":216,"props":5903,"children":5904},{"style":3040},[5905],{"type":213,"value":5906},"        icon",{"type":208,"tag":216,"props":5908,"children":5909},{"style":3030},[5910],{"type":213,"value":282},{"type":208,"tag":216,"props":5912,"children":5913},{"style":3053},[5914,5918],{"type":208,"tag":3890,"props":5915,"children":5917},{"class":3892,"style":5916},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Flog-in.svg?color=%23000)",[],{"type":213,"value":5919},"\"i-lucide-log-in\"\n",{"type":208,"tag":216,"props":5921,"children":5922},{"class":264,"line":4027},[5923,5928,5932,5936,5940,5945],{"type":208,"tag":216,"props":5924,"children":5925},{"style":3030},[5926],{"type":213,"value":5927},"        @",{"type":208,"tag":216,"props":5929,"children":5930},{"style":3040},[5931],{"type":213,"value":3932},{"type":208,"tag":216,"props":5933,"children":5934},{"style":3030},[5935],{"type":213,"value":282},{"type":208,"tag":216,"props":5937,"children":5938},{"style":3053},[5939],{"type":213,"value":3760},{"type":208,"tag":216,"props":5941,"children":5942},{"style":3030},[5943],{"type":213,"value":5944},"login",{"type":208,"tag":216,"props":5946,"children":5947},{"style":3053},[5948],{"type":213,"value":5852},{"type":208,"tag":216,"props":5950,"children":5951},{"class":264,"line":4036},[5952],{"type":208,"tag":216,"props":5953,"children":5954},{"style":3030},[5955],{"type":213,"value":5956},"      >\n",{"type":208,"tag":216,"props":5958,"children":5959},{"class":264,"line":4052},[5960],{"type":208,"tag":216,"props":5961,"children":5962},{"style":3030},[5963],{"type":213,"value":5964},"        登录（写入 session.token）\n",{"type":208,"tag":216,"props":5966,"children":5967},{"class":264,"line":4090},[5968,5972,5976],{"type":208,"tag":216,"props":5969,"children":5970},{"style":3030},[5971],{"type":213,"value":3828},{"type":208,"tag":216,"props":5973,"children":5974},{"style":3035},[5975],{"type":213,"value":3849},{"type":208,"tag":216,"props":5977,"children":5978},{"style":3030},[5979],{"type":213,"value":1271},{"type":208,"tag":216,"props":5981,"children":5982},{"class":264,"line":4107},[5983,5987],{"type":208,"tag":216,"props":5984,"children":5985},{"style":3030},[5986],{"type":213,"value":3737},{"type":208,"tag":216,"props":5988,"children":5989},{"style":3035},[5990],{"type":213,"value":5822},{"type":208,"tag":216,"props":5992,"children":5994},{"class":264,"line":5993},48,[5995],{"type":208,"tag":216,"props":5996,"children":5997},{"style":3065},[5998],{"type":213,"value":5999},"        v-else\n",{"type":208,"tag":216,"props":6001,"children":6003},{"class":264,"line":6002},49,[6004,6008,6012],{"type":208,"tag":216,"props":6005,"children":6006},{"style":3040},[6007],{"type":213,"value":5860},{"type":208,"tag":216,"props":6009,"children":6010},{"style":3030},[6011],{"type":213,"value":282},{"type":208,"tag":216,"props":6013,"children":6014},{"style":3053},[6015],{"type":213,"value":5869},{"type":208,"tag":216,"props":6017,"children":6019},{"class":264,"line":6018},50,[6020,6025,6029],{"type":208,"tag":216,"props":6021,"children":6022},{"style":3040},[6023],{"type":213,"value":6024},"        color",{"type":208,"tag":216,"props":6026,"children":6027},{"style":3030},[6028],{"type":213,"value":282},{"type":208,"tag":216,"props":6030,"children":6031},{"style":3053},[6032],{"type":213,"value":6033},"\"error\"\n",{"type":208,"tag":216,"props":6035,"children":6037},{"class":264,"line":6036},51,[6038,6043,6047],{"type":208,"tag":216,"props":6039,"children":6040},{"style":3040},[6041],{"type":213,"value":6042},"        variant",{"type":208,"tag":216,"props":6044,"children":6045},{"style":3030},[6046],{"type":213,"value":282},{"type":208,"tag":216,"props":6048,"children":6049},{"style":3053},[6050],{"type":213,"value":6051},"\"outline\"\n",{"type":208,"tag":216,"props":6053,"children":6055},{"class":264,"line":6054},52,[6056,6060,6064,6068,6072,6077],{"type":208,"tag":216,"props":6057,"children":6058},{"style":3030},[6059],{"type":213,"value":5877},{"type":208,"tag":216,"props":6061,"children":6062},{"style":3040},[6063],{"type":213,"value":3905},{"type":208,"tag":216,"props":6065,"children":6066},{"style":3030},[6067],{"type":213,"value":282},{"type":208,"tag":216,"props":6069,"children":6070},{"style":3053},[6071],{"type":213,"value":3760},{"type":208,"tag":216,"props":6073,"children":6074},{"style":3030},[6075],{"type":213,"value":6076},"logoutPending",{"type":208,"tag":216,"props":6078,"children":6079},{"style":3053},[6080],{"type":213,"value":5852},{"type":208,"tag":216,"props":6082,"children":6084},{"class":264,"line":6083},53,[6085,6089,6093],{"type":208,"tag":216,"props":6086,"children":6087},{"style":3040},[6088],{"type":213,"value":5906},{"type":208,"tag":216,"props":6090,"children":6091},{"style":3030},[6092],{"type":213,"value":282},{"type":208,"tag":216,"props":6094,"children":6095},{"style":3053},[6096,6100],{"type":208,"tag":3890,"props":6097,"children":6099},{"class":3892,"style":6098},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Flog-out.svg?color=%23000)",[],{"type":213,"value":6101},"\"i-lucide-log-out\"\n",{"type":208,"tag":216,"props":6103,"children":6105},{"class":264,"line":6104},54,[6106,6110,6114,6118,6122,6127],{"type":208,"tag":216,"props":6107,"children":6108},{"style":3030},[6109],{"type":213,"value":5927},{"type":208,"tag":216,"props":6111,"children":6112},{"style":3040},[6113],{"type":213,"value":3932},{"type":208,"tag":216,"props":6115,"children":6116},{"style":3030},[6117],{"type":213,"value":282},{"type":208,"tag":216,"props":6119,"children":6120},{"style":3053},[6121],{"type":213,"value":3760},{"type":208,"tag":216,"props":6123,"children":6124},{"style":3030},[6125],{"type":213,"value":6126},"logout",{"type":208,"tag":216,"props":6128,"children":6129},{"style":3053},[6130],{"type":213,"value":5852},{"type":208,"tag":216,"props":6132,"children":6134},{"class":264,"line":6133},55,[6135],{"type":208,"tag":216,"props":6136,"children":6137},{"style":3030},[6138],{"type":213,"value":5956},{"type":208,"tag":216,"props":6140,"children":6142},{"class":264,"line":6141},56,[6143],{"type":208,"tag":216,"props":6144,"children":6145},{"style":3030},[6146],{"type":213,"value":6147},"        登出（清除 session）\n",{"type":208,"tag":216,"props":6149,"children":6151},{"class":264,"line":6150},57,[6152,6156,6160],{"type":208,"tag":216,"props":6153,"children":6154},{"style":3030},[6155],{"type":213,"value":3828},{"type":208,"tag":216,"props":6157,"children":6158},{"style":3035},[6159],{"type":213,"value":3849},{"type":208,"tag":216,"props":6161,"children":6162},{"style":3030},[6163],{"type":213,"value":1271},{"type":208,"tag":216,"props":6165,"children":6167},{"class":264,"line":6166},58,[6168,6172,6176],{"type":208,"tag":216,"props":6169,"children":6170},{"style":3030},[6171],{"type":213,"value":3987},{"type":208,"tag":216,"props":6173,"children":6174},{"style":3035},[6175],{"type":213,"value":3680},{"type":208,"tag":216,"props":6177,"children":6178},{"style":3030},[6179],{"type":213,"value":1271},{"type":208,"tag":216,"props":6181,"children":6183},{"class":264,"line":6182},59,[6184,6188,6192,6196,6200,6204],{"type":208,"tag":216,"props":6185,"children":6186},{"style":3030},[6187],{"type":213,"value":3707},{"type":208,"tag":216,"props":6189,"children":6190},{"style":3035},[6191],{"type":213,"value":209},{"type":208,"tag":216,"props":6193,"children":6194},{"style":3040},[6195],{"type":213,"value":3685},{"type":208,"tag":216,"props":6197,"children":6198},{"style":3030},[6199],{"type":213,"value":282},{"type":208,"tag":216,"props":6201,"children":6202},{"style":3053},[6203],{"type":213,"value":4020},{"type":208,"tag":216,"props":6205,"children":6206},{"style":3030},[6207],{"type":213,"value":1271},{"type":208,"tag":216,"props":6209,"children":6211},{"class":264,"line":6210},60,[6212],{"type":208,"tag":216,"props":6213,"children":6214},{"style":3030},[6215],{"type":213,"value":6216},"      sessionTokenPath: {{ publicConfig.auth?.sessionTokenPath }}\n",{"type":208,"tag":216,"props":6218,"children":6220},{"class":264,"line":6219},61,[6221,6225,6229],{"type":208,"tag":216,"props":6222,"children":6223},{"style":3030},[6224],{"type":213,"value":3987},{"type":208,"tag":216,"props":6226,"children":6227},{"style":3035},[6228],{"type":213,"value":209},{"type":208,"tag":216,"props":6230,"children":6231},{"style":3030},[6232],{"type":213,"value":1271},{"type":208,"tag":216,"props":6234,"children":6236},{"class":264,"line":6235},62,[6237,6241,6245,6249,6253,6257,6262,6266],{"type":208,"tag":216,"props":6238,"children":6239},{"style":3030},[6240],{"type":213,"value":3707},{"type":208,"tag":216,"props":6242,"children":6243},{"style":3035},[6244],{"type":213,"value":254},{"type":208,"tag":216,"props":6246,"children":6247},{"style":3040},[6248],{"type":213,"value":3685},{"type":208,"tag":216,"props":6250,"children":6251},{"style":3030},[6252],{"type":213,"value":282},{"type":208,"tag":216,"props":6254,"children":6255},{"style":3053},[6256],{"type":213,"value":4074},{"type":208,"tag":216,"props":6258,"children":6259},{"style":3030},[6260],{"type":213,"value":6261},">{{ session }}\u003C\u002F",{"type":208,"tag":216,"props":6263,"children":6264},{"style":3035},[6265],{"type":213,"value":254},{"type":208,"tag":216,"props":6267,"children":6268},{"style":3030},[6269],{"type":213,"value":1271},{"type":208,"tag":216,"props":6271,"children":6273},{"class":264,"line":6272},63,[6274,6278,6282],{"type":208,"tag":216,"props":6275,"children":6276},{"style":3030},[6277],{"type":213,"value":4096},{"type":208,"tag":216,"props":6279,"children":6280},{"style":3035},[6281],{"type":213,"value":3680},{"type":208,"tag":216,"props":6283,"children":6284},{"style":3030},[6285],{"type":213,"value":1271},{"type":208,"tag":216,"props":6287,"children":6289},{"class":264,"line":6288},64,[6290,6294,6298],{"type":208,"tag":216,"props":6291,"children":6292},{"style":3030},[6293],{"type":213,"value":1506},{"type":208,"tag":216,"props":6295,"children":6296},{"style":3035},[6297],{"type":213,"value":3662},{"type":208,"tag":216,"props":6299,"children":6300},{"style":3030},[6301],{"type":213,"value":1271},{"type":208,"tag":2933,"props":6303,"children":6304},{},[6305],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":6307},[],{"data":6309,"body":6310,"toc":6789},{"title":259,"description":259},{"type":205,"children":6311},[6312,6785],{"type":208,"tag":254,"props":6313,"children":6315},{"className":1245,"code":6314,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst display = computed(() => {\n  if (protectedRes.error.value) {\n    return {\n      statusCode: protectedRes.error.value.statusCode,\n      message: protectedRes.error.value.message\n    }\n  }\n  return protectedRes.data.value\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" icon=\"i-lucide-shield-check\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected\n    \u003C\u002FUButton>\n    \u003Cp class=\"text-xs text-muted\">\n      未登录时拦截器返回 401；已登录则携带 Authorization 头\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[6316],{"type":208,"tag":235,"props":6317,"children":6318},{"__ignoreMap":259},[6319,6350,6392,6399,6431,6443,6454,6462,6470,6477,6484,6496,6503,6518,6525,6540,6567,6646,6654,6669,6696,6704,6719,6755,6770],{"type":208,"tag":216,"props":6320,"children":6321},{"class":264,"line":265},[6322,6326,6330,6334,6338,6342,6346],{"type":208,"tag":216,"props":6323,"children":6324},{"style":3030},[6325],{"type":213,"value":323},{"type":208,"tag":216,"props":6327,"children":6328},{"style":3035},[6329],{"type":213,"value":1257},{"type":208,"tag":216,"props":6331,"children":6332},{"style":3040},[6333],{"type":213,"value":1260},{"type":208,"tag":216,"props":6335,"children":6336},{"style":3040},[6337],{"type":213,"value":1263},{"type":208,"tag":216,"props":6339,"children":6340},{"style":3030},[6341],{"type":213,"value":282},{"type":208,"tag":216,"props":6343,"children":6344},{"style":3053},[6345],{"type":213,"value":1268},{"type":208,"tag":216,"props":6347,"children":6348},{"style":3030},[6349],{"type":213,"value":1271},{"type":208,"tag":216,"props":6351,"children":6352},{"class":264,"line":292},[6353,6357,6362,6366,6370,6374,6379,6384,6388],{"type":208,"tag":216,"props":6354,"children":6355},{"style":3065},[6356],{"type":213,"value":269},{"type":208,"tag":216,"props":6358,"children":6359},{"style":3070},[6360],{"type":213,"value":6361}," protectedRes",{"type":208,"tag":216,"props":6363,"children":6364},{"style":3065},[6365],{"type":213,"value":314},{"type":208,"tag":216,"props":6367,"children":6368},{"style":3040},[6369],{"type":213,"value":2152},{"type":208,"tag":216,"props":6371,"children":6372},{"style":3030},[6373],{"type":213,"value":498},{"type":208,"tag":216,"props":6375,"children":6376},{"style":3053},[6377],{"type":213,"value":6378},"'\u002Fdemo\u002Fprotected'",{"type":208,"tag":216,"props":6380,"children":6381},{"style":3030},[6382],{"type":213,"value":6383},", { immediate: ",{"type":208,"tag":216,"props":6385,"children":6386},{"style":3070},[6387],{"type":213,"value":1024},{"type":208,"tag":216,"props":6389,"children":6390},{"style":3030},[6391],{"type":213,"value":513},{"type":208,"tag":216,"props":6393,"children":6394},{"class":264,"line":299},[6395],{"type":208,"tag":216,"props":6396,"children":6397},{"emptyLinePlaceholder":295},[6398],{"type":213,"value":296},{"type":208,"tag":216,"props":6400,"children":6401},{"class":264,"line":306},[6402,6406,6411,6415,6419,6423,6427],{"type":208,"tag":216,"props":6403,"children":6404},{"style":3065},[6405],{"type":213,"value":269},{"type":208,"tag":216,"props":6407,"children":6408},{"style":3070},[6409],{"type":213,"value":6410}," display",{"type":208,"tag":216,"props":6412,"children":6413},{"style":3065},[6414],{"type":213,"value":314},{"type":208,"tag":216,"props":6416,"children":6417},{"style":3040},[6418],{"type":213,"value":3341},{"type":208,"tag":216,"props":6420,"children":6421},{"style":3030},[6422],{"type":213,"value":3346},{"type":208,"tag":216,"props":6424,"children":6425},{"style":3065},[6426],{"type":213,"value":1590},{"type":208,"tag":216,"props":6428,"children":6429},{"style":3030},[6430],{"type":213,"value":1330},{"type":208,"tag":216,"props":6432,"children":6433},{"class":264,"line":339},[6434,6438],{"type":208,"tag":216,"props":6435,"children":6436},{"style":3065},[6437],{"type":213,"value":2528},{"type":208,"tag":216,"props":6439,"children":6440},{"style":3030},[6441],{"type":213,"value":6442}," (protectedRes.error.value) {\n",{"type":208,"tag":216,"props":6444,"children":6445},{"class":264,"line":344},[6446,6450],{"type":208,"tag":216,"props":6447,"children":6448},{"style":3065},[6449],{"type":213,"value":1822},{"type":208,"tag":216,"props":6451,"children":6452},{"style":3030},[6453],{"type":213,"value":1330},{"type":208,"tag":216,"props":6455,"children":6456},{"class":264,"line":350},[6457],{"type":208,"tag":216,"props":6458,"children":6459},{"style":3030},[6460],{"type":213,"value":6461},"      statusCode: protectedRes.error.value.statusCode,\n",{"type":208,"tag":216,"props":6463,"children":6464},{"class":264,"line":376},[6465],{"type":208,"tag":216,"props":6466,"children":6467},{"style":3030},[6468],{"type":213,"value":6469},"      message: protectedRes.error.value.message\n",{"type":208,"tag":216,"props":6471,"children":6472},{"class":264,"line":388},[6473],{"type":208,"tag":216,"props":6474,"children":6475},{"style":3030},[6476],{"type":213,"value":1046},{"type":208,"tag":216,"props":6478,"children":6479},{"class":264,"line":406},[6480],{"type":208,"tag":216,"props":6481,"children":6482},{"style":3030},[6483],{"type":213,"value":1051},{"type":208,"tag":216,"props":6485,"children":6486},{"class":264,"line":412},[6487,6491],{"type":208,"tag":216,"props":6488,"children":6489},{"style":3065},[6490],{"type":213,"value":1688},{"type":208,"tag":216,"props":6492,"children":6493},{"style":3030},[6494],{"type":213,"value":6495}," protectedRes.data.value\n",{"type":208,"tag":216,"props":6497,"children":6498},{"class":264,"line":417},[6499],{"type":208,"tag":216,"props":6500,"children":6501},{"style":3030},[6502],{"type":213,"value":409},{"type":208,"tag":216,"props":6504,"children":6505},{"class":264,"line":423},[6506,6510,6514],{"type":208,"tag":216,"props":6507,"children":6508},{"style":3030},[6509],{"type":213,"value":1506},{"type":208,"tag":216,"props":6511,"children":6512},{"style":3035},[6513],{"type":213,"value":1257},{"type":208,"tag":216,"props":6515,"children":6516},{"style":3030},[6517],{"type":213,"value":1271},{"type":208,"tag":216,"props":6519,"children":6520},{"class":264,"line":454},[6521],{"type":208,"tag":216,"props":6522,"children":6523},{"emptyLinePlaceholder":295},[6524],{"type":213,"value":296},{"type":208,"tag":216,"props":6526,"children":6527},{"class":264,"line":464},[6528,6532,6536],{"type":208,"tag":216,"props":6529,"children":6530},{"style":3030},[6531],{"type":213,"value":323},{"type":208,"tag":216,"props":6533,"children":6534},{"style":3035},[6535],{"type":213,"value":3662},{"type":208,"tag":216,"props":6537,"children":6538},{"style":3030},[6539],{"type":213,"value":1271},{"type":208,"tag":216,"props":6541,"children":6542},{"class":264,"line":474},[6543,6547,6551,6555,6559,6563],{"type":208,"tag":216,"props":6544,"children":6545},{"style":3030},[6546],{"type":213,"value":3675},{"type":208,"tag":216,"props":6548,"children":6549},{"style":3035},[6550],{"type":213,"value":3680},{"type":208,"tag":216,"props":6552,"children":6553},{"style":3040},[6554],{"type":213,"value":3685},{"type":208,"tag":216,"props":6556,"children":6557},{"style":3030},[6558],{"type":213,"value":282},{"type":208,"tag":216,"props":6560,"children":6561},{"style":3053},[6562],{"type":213,"value":3694},{"type":208,"tag":216,"props":6564,"children":6565},{"style":3030},[6566],{"type":213,"value":1271},{"type":208,"tag":216,"props":6568,"children":6569},{"class":264,"line":479},[6570,6574,6578,6582,6586,6590,6594,6598,6607,6611,6615,6619,6623,6628,6633,6638,6642],{"type":208,"tag":216,"props":6571,"children":6572},{"style":3030},[6573],{"type":213,"value":3707},{"type":208,"tag":216,"props":6575,"children":6576},{"style":3035},[6577],{"type":213,"value":3849},{"type":208,"tag":216,"props":6579,"children":6580},{"style":3040},[6581],{"type":213,"value":3854},{"type":208,"tag":216,"props":6583,"children":6584},{"style":3030},[6585],{"type":213,"value":282},{"type":208,"tag":216,"props":6587,"children":6588},{"style":3053},[6589],{"type":213,"value":3863},{"type":208,"tag":216,"props":6591,"children":6592},{"style":3040},[6593],{"type":213,"value":3881},{"type":208,"tag":216,"props":6595,"children":6596},{"style":3030},[6597],{"type":213,"value":282},{"type":208,"tag":216,"props":6599,"children":6600},{"style":3053},[6601,6605],{"type":208,"tag":3890,"props":6602,"children":6604},{"class":3892,"style":6603},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fshield-check.svg?color=%23000)",[],{"type":213,"value":6606},"\"i-lucide-shield-check\"",{"type":208,"tag":216,"props":6608,"children":6609},{"style":3030},[6610],{"type":213,"value":3927},{"type":208,"tag":216,"props":6612,"children":6613},{"style":3040},[6614],{"type":213,"value":3932},{"type":208,"tag":216,"props":6616,"children":6617},{"style":3030},[6618],{"type":213,"value":282},{"type":208,"tag":216,"props":6620,"children":6621},{"style":3053},[6622],{"type":213,"value":3760},{"type":208,"tag":216,"props":6624,"children":6625},{"style":3030},[6626],{"type":213,"value":6627},"protectedRes.",{"type":208,"tag":216,"props":6629,"children":6630},{"style":3040},[6631],{"type":213,"value":6632},"execute",{"type":208,"tag":216,"props":6634,"children":6635},{"style":3030},[6636],{"type":213,"value":6637},"()",{"type":208,"tag":216,"props":6639,"children":6640},{"style":3053},[6641],{"type":213,"value":3760},{"type":208,"tag":216,"props":6643,"children":6644},{"style":3030},[6645],{"type":213,"value":1271},{"type":208,"tag":216,"props":6647,"children":6648},{"class":264,"line":484},[6649],{"type":208,"tag":216,"props":6650,"children":6651},{"style":3030},[6652],{"type":213,"value":6653},"      请求 \u002Fdemo\u002Fprotected\n",{"type":208,"tag":216,"props":6655,"children":6656},{"class":264,"line":490},[6657,6661,6665],{"type":208,"tag":216,"props":6658,"children":6659},{"style":3030},[6660],{"type":213,"value":3987},{"type":208,"tag":216,"props":6662,"children":6663},{"style":3035},[6664],{"type":213,"value":3849},{"type":208,"tag":216,"props":6666,"children":6667},{"style":3030},[6668],{"type":213,"value":1271},{"type":208,"tag":216,"props":6670,"children":6671},{"class":264,"line":1435},[6672,6676,6680,6684,6688,6692],{"type":208,"tag":216,"props":6673,"children":6674},{"style":3030},[6675],{"type":213,"value":3707},{"type":208,"tag":216,"props":6677,"children":6678},{"style":3035},[6679],{"type":213,"value":209},{"type":208,"tag":216,"props":6681,"children":6682},{"style":3040},[6683],{"type":213,"value":3685},{"type":208,"tag":216,"props":6685,"children":6686},{"style":3030},[6687],{"type":213,"value":282},{"type":208,"tag":216,"props":6689,"children":6690},{"style":3053},[6691],{"type":213,"value":4020},{"type":208,"tag":216,"props":6693,"children":6694},{"style":3030},[6695],{"type":213,"value":1271},{"type":208,"tag":216,"props":6697,"children":6698},{"class":264,"line":1441},[6699],{"type":208,"tag":216,"props":6700,"children":6701},{"style":3030},[6702],{"type":213,"value":6703},"      未登录时拦截器返回 401；已登录则携带 Authorization 头\n",{"type":208,"tag":216,"props":6705,"children":6706},{"class":264,"line":1462},[6707,6711,6715],{"type":208,"tag":216,"props":6708,"children":6709},{"style":3030},[6710],{"type":213,"value":3987},{"type":208,"tag":216,"props":6712,"children":6713},{"style":3035},[6714],{"type":213,"value":209},{"type":208,"tag":216,"props":6716,"children":6717},{"style":3030},[6718],{"type":213,"value":1271},{"type":208,"tag":216,"props":6720,"children":6721},{"class":264,"line":1484},[6722,6726,6730,6734,6738,6742,6747,6751],{"type":208,"tag":216,"props":6723,"children":6724},{"style":3030},[6725],{"type":213,"value":3707},{"type":208,"tag":216,"props":6727,"children":6728},{"style":3035},[6729],{"type":213,"value":254},{"type":208,"tag":216,"props":6731,"children":6732},{"style":3040},[6733],{"type":213,"value":3685},{"type":208,"tag":216,"props":6735,"children":6736},{"style":3030},[6737],{"type":213,"value":282},{"type":208,"tag":216,"props":6739,"children":6740},{"style":3053},[6741],{"type":213,"value":4074},{"type":208,"tag":216,"props":6743,"children":6744},{"style":3030},[6745],{"type":213,"value":6746},">{{ display }}\u003C\u002F",{"type":208,"tag":216,"props":6748,"children":6749},{"style":3035},[6750],{"type":213,"value":254},{"type":208,"tag":216,"props":6752,"children":6753},{"style":3030},[6754],{"type":213,"value":1271},{"type":208,"tag":216,"props":6756,"children":6757},{"class":264,"line":1498},[6758,6762,6766],{"type":208,"tag":216,"props":6759,"children":6760},{"style":3030},[6761],{"type":213,"value":4096},{"type":208,"tag":216,"props":6763,"children":6764},{"style":3035},[6765],{"type":213,"value":3680},{"type":208,"tag":216,"props":6767,"children":6768},{"style":3030},[6769],{"type":213,"value":1271},{"type":208,"tag":216,"props":6771,"children":6772},{"class":264,"line":1503},[6773,6777,6781],{"type":208,"tag":216,"props":6774,"children":6775},{"style":3030},[6776],{"type":213,"value":1506},{"type":208,"tag":216,"props":6778,"children":6779},{"style":3035},[6780],{"type":213,"value":3662},{"type":208,"tag":216,"props":6782,"children":6783},{"style":3030},[6784],{"type":213,"value":1271},{"type":208,"tag":2933,"props":6786,"children":6787},{},[6788],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":6790},[],{"data":6792,"body":6793,"toc":7093},{"title":259,"description":259},{"type":205,"children":6794},[6795,7089],{"type":208,"tag":254,"props":6796,"children":6798},{"className":1245,"code":6797,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cp class=\"text-sm text-muted\">\n      \u003Ccode>auth.unauthorized\u003C\u002Fcode> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003Ccode>redirect: true\u003C\u002Fcode> + \u003Ccode>loginPath\u003C\u002Fcode>。\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ publicConfig.auth?.unauthorized }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[6799],{"type":208,"tag":235,"props":6800,"children":6801},{"__ignoreMap":259},[6802,6833,6856,6871,6878,6893,6920,6947,7008,7023,7059,7074],{"type":208,"tag":216,"props":6803,"children":6804},{"class":264,"line":265},[6805,6809,6813,6817,6821,6825,6829],{"type":208,"tag":216,"props":6806,"children":6807},{"style":3030},[6808],{"type":213,"value":323},{"type":208,"tag":216,"props":6810,"children":6811},{"style":3035},[6812],{"type":213,"value":1257},{"type":208,"tag":216,"props":6814,"children":6815},{"style":3040},[6816],{"type":213,"value":1260},{"type":208,"tag":216,"props":6818,"children":6819},{"style":3040},[6820],{"type":213,"value":1263},{"type":208,"tag":216,"props":6822,"children":6823},{"style":3030},[6824],{"type":213,"value":282},{"type":208,"tag":216,"props":6826,"children":6827},{"style":3053},[6828],{"type":213,"value":1268},{"type":208,"tag":216,"props":6830,"children":6831},{"style":3030},[6832],{"type":213,"value":1271},{"type":208,"tag":216,"props":6834,"children":6835},{"class":264,"line":292},[6836,6840,6844,6848,6852],{"type":208,"tag":216,"props":6837,"children":6838},{"style":3065},[6839],{"type":213,"value":269},{"type":208,"tag":216,"props":6841,"children":6842},{"style":3070},[6843],{"type":213,"value":3171},{"type":208,"tag":216,"props":6845,"children":6846},{"style":3065},[6847],{"type":213,"value":314},{"type":208,"tag":216,"props":6849,"children":6850},{"style":3040},[6851],{"type":213,"value":3180},{"type":208,"tag":216,"props":6853,"children":6854},{"style":3030},[6855],{"type":213,"value":3185},{"type":208,"tag":216,"props":6857,"children":6858},{"class":264,"line":299},[6859,6863,6867],{"type":208,"tag":216,"props":6860,"children":6861},{"style":3030},[6862],{"type":213,"value":1506},{"type":208,"tag":216,"props":6864,"children":6865},{"style":3035},[6866],{"type":213,"value":1257},{"type":208,"tag":216,"props":6868,"children":6869},{"style":3030},[6870],{"type":213,"value":1271},{"type":208,"tag":216,"props":6872,"children":6873},{"class":264,"line":306},[6874],{"type":208,"tag":216,"props":6875,"children":6876},{"emptyLinePlaceholder":295},[6877],{"type":213,"value":296},{"type":208,"tag":216,"props":6879,"children":6880},{"class":264,"line":339},[6881,6885,6889],{"type":208,"tag":216,"props":6882,"children":6883},{"style":3030},[6884],{"type":213,"value":323},{"type":208,"tag":216,"props":6886,"children":6887},{"style":3035},[6888],{"type":213,"value":3662},{"type":208,"tag":216,"props":6890,"children":6891},{"style":3030},[6892],{"type":213,"value":1271},{"type":208,"tag":216,"props":6894,"children":6895},{"class":264,"line":344},[6896,6900,6904,6908,6912,6916],{"type":208,"tag":216,"props":6897,"children":6898},{"style":3030},[6899],{"type":213,"value":3675},{"type":208,"tag":216,"props":6901,"children":6902},{"style":3035},[6903],{"type":213,"value":3680},{"type":208,"tag":216,"props":6905,"children":6906},{"style":3040},[6907],{"type":213,"value":3685},{"type":208,"tag":216,"props":6909,"children":6910},{"style":3030},[6911],{"type":213,"value":282},{"type":208,"tag":216,"props":6913,"children":6914},{"style":3053},[6915],{"type":213,"value":3694},{"type":208,"tag":216,"props":6917,"children":6918},{"style":3030},[6919],{"type":213,"value":1271},{"type":208,"tag":216,"props":6921,"children":6922},{"class":264,"line":350},[6923,6927,6931,6935,6939,6943],{"type":208,"tag":216,"props":6924,"children":6925},{"style":3030},[6926],{"type":213,"value":3707},{"type":208,"tag":216,"props":6928,"children":6929},{"style":3035},[6930],{"type":213,"value":209},{"type":208,"tag":216,"props":6932,"children":6933},{"style":3040},[6934],{"type":213,"value":3685},{"type":208,"tag":216,"props":6936,"children":6937},{"style":3030},[6938],{"type":213,"value":282},{"type":208,"tag":216,"props":6940,"children":6941},{"style":3053},[6942],{"type":213,"value":4948},{"type":208,"tag":216,"props":6944,"children":6945},{"style":3030},[6946],{"type":213,"value":1271},{"type":208,"tag":216,"props":6948,"children":6949},{"class":264,"line":376},[6950,6954,6958,6963,6967,6972,6976,6981,6985,6990,6994,6999,7003],{"type":208,"tag":216,"props":6951,"children":6952},{"style":3030},[6953],{"type":213,"value":3737},{"type":208,"tag":216,"props":6955,"children":6956},{"style":3035},[6957],{"type":213,"value":235},{"type":208,"tag":216,"props":6959,"children":6960},{"style":3030},[6961],{"type":213,"value":6962},">auth.unauthorized\u003C\u002F",{"type":208,"tag":216,"props":6964,"children":6965},{"style":3035},[6966],{"type":213,"value":235},{"type":208,"tag":216,"props":6968,"children":6969},{"style":3030},[6970],{"type":213,"value":6971},"> 控制 401 时的行为；docs 站点关闭重定向便于演示，生产建议启用 \u003C",{"type":208,"tag":216,"props":6973,"children":6974},{"style":3035},[6975],{"type":213,"value":235},{"type":208,"tag":216,"props":6977,"children":6978},{"style":3030},[6979],{"type":213,"value":6980},">redirect: true\u003C\u002F",{"type":208,"tag":216,"props":6982,"children":6983},{"style":3035},[6984],{"type":213,"value":235},{"type":208,"tag":216,"props":6986,"children":6987},{"style":3030},[6988],{"type":213,"value":6989},"> + \u003C",{"type":208,"tag":216,"props":6991,"children":6992},{"style":3035},[6993],{"type":213,"value":235},{"type":208,"tag":216,"props":6995,"children":6996},{"style":3030},[6997],{"type":213,"value":6998},">loginPath\u003C\u002F",{"type":208,"tag":216,"props":7000,"children":7001},{"style":3035},[7002],{"type":213,"value":235},{"type":208,"tag":216,"props":7004,"children":7005},{"style":3030},[7006],{"type":213,"value":7007},">。\n",{"type":208,"tag":216,"props":7009,"children":7010},{"class":264,"line":388},[7011,7015,7019],{"type":208,"tag":216,"props":7012,"children":7013},{"style":3030},[7014],{"type":213,"value":3987},{"type":208,"tag":216,"props":7016,"children":7017},{"style":3035},[7018],{"type":213,"value":209},{"type":208,"tag":216,"props":7020,"children":7021},{"style":3030},[7022],{"type":213,"value":1271},{"type":208,"tag":216,"props":7024,"children":7025},{"class":264,"line":406},[7026,7030,7034,7038,7042,7046,7051,7055],{"type":208,"tag":216,"props":7027,"children":7028},{"style":3030},[7029],{"type":213,"value":3707},{"type":208,"tag":216,"props":7031,"children":7032},{"style":3035},[7033],{"type":213,"value":254},{"type":208,"tag":216,"props":7035,"children":7036},{"style":3040},[7037],{"type":213,"value":3685},{"type":208,"tag":216,"props":7039,"children":7040},{"style":3030},[7041],{"type":213,"value":282},{"type":208,"tag":216,"props":7043,"children":7044},{"style":3053},[7045],{"type":213,"value":4074},{"type":208,"tag":216,"props":7047,"children":7048},{"style":3030},[7049],{"type":213,"value":7050},">{{ publicConfig.auth?.unauthorized }}\u003C\u002F",{"type":208,"tag":216,"props":7052,"children":7053},{"style":3035},[7054],{"type":213,"value":254},{"type":208,"tag":216,"props":7056,"children":7057},{"style":3030},[7058],{"type":213,"value":1271},{"type":208,"tag":216,"props":7060,"children":7061},{"class":264,"line":412},[7062,7066,7070],{"type":208,"tag":216,"props":7063,"children":7064},{"style":3030},[7065],{"type":213,"value":4096},{"type":208,"tag":216,"props":7067,"children":7068},{"style":3035},[7069],{"type":213,"value":3680},{"type":208,"tag":216,"props":7071,"children":7072},{"style":3030},[7073],{"type":213,"value":1271},{"type":208,"tag":216,"props":7075,"children":7076},{"class":264,"line":417},[7077,7081,7085],{"type":208,"tag":216,"props":7078,"children":7079},{"style":3030},[7080],{"type":213,"value":1506},{"type":208,"tag":216,"props":7082,"children":7083},{"style":3035},[7084],{"type":213,"value":3662},{"type":208,"tag":216,"props":7086,"children":7087},{"style":3030},[7088],{"type":213,"value":1271},{"type":208,"tag":2933,"props":7090,"children":7091},{},[7092],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":7094},[],{"data":7096,"body":7097,"toc":7694},{"title":259,"description":259},{"type":205,"children":7098},[7099,7690],{"type":208,"tag":254,"props":7100,"children":7102},{"className":1245,"code":7101,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst publicConfig = useRuntimeConfig().public.movkApi\nconst protectedRes = useApiFetch('\u002Fdemo\u002Fprotected', { immediate: false })\n\nconst echoed = computed(() => {\n  const data = protectedRes.data.value\n  return data && typeof data === 'object'\n    ? (data as { authHeader?: string }).authHeader\n    : null\n})\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"protectedRes.execute()\">\n      请求 \u002Fdemo\u002Fprotected 查看注入\n    \u003C\u002FUButton>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ {\n      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n      echoed\n    } }}\u003C\u002Fpre>\n    \u003Cp class=\"text-xs text-muted\">\n      登录后再次请求，\u003Ccode>echoed\u003C\u002Fcode> 字段会展示拦截器实际注入的 Authorization 头。\n    \u003C\u002Fp>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[7103],{"type":208,"tag":235,"props":7104,"children":7105},{"__ignoreMap":259},[7106,7137,7160,7199,7206,7238,7257,7292,7330,7342,7349,7364,7371,7386,7413,7501,7509,7524,7552,7560,7568,7576,7592,7619,7645,7660,7675],{"type":208,"tag":216,"props":7107,"children":7108},{"class":264,"line":265},[7109,7113,7117,7121,7125,7129,7133],{"type":208,"tag":216,"props":7110,"children":7111},{"style":3030},[7112],{"type":213,"value":323},{"type":208,"tag":216,"props":7114,"children":7115},{"style":3035},[7116],{"type":213,"value":1257},{"type":208,"tag":216,"props":7118,"children":7119},{"style":3040},[7120],{"type":213,"value":1260},{"type":208,"tag":216,"props":7122,"children":7123},{"style":3040},[7124],{"type":213,"value":1263},{"type":208,"tag":216,"props":7126,"children":7127},{"style":3030},[7128],{"type":213,"value":282},{"type":208,"tag":216,"props":7130,"children":7131},{"style":3053},[7132],{"type":213,"value":1268},{"type":208,"tag":216,"props":7134,"children":7135},{"style":3030},[7136],{"type":213,"value":1271},{"type":208,"tag":216,"props":7138,"children":7139},{"class":264,"line":292},[7140,7144,7148,7152,7156],{"type":208,"tag":216,"props":7141,"children":7142},{"style":3065},[7143],{"type":213,"value":269},{"type":208,"tag":216,"props":7145,"children":7146},{"style":3070},[7147],{"type":213,"value":3171},{"type":208,"tag":216,"props":7149,"children":7150},{"style":3065},[7151],{"type":213,"value":314},{"type":208,"tag":216,"props":7153,"children":7154},{"style":3040},[7155],{"type":213,"value":3180},{"type":208,"tag":216,"props":7157,"children":7158},{"style":3030},[7159],{"type":213,"value":3185},{"type":208,"tag":216,"props":7161,"children":7162},{"class":264,"line":299},[7163,7167,7171,7175,7179,7183,7187,7191,7195],{"type":208,"tag":216,"props":7164,"children":7165},{"style":3065},[7166],{"type":213,"value":269},{"type":208,"tag":216,"props":7168,"children":7169},{"style":3070},[7170],{"type":213,"value":6361},{"type":208,"tag":216,"props":7172,"children":7173},{"style":3065},[7174],{"type":213,"value":314},{"type":208,"tag":216,"props":7176,"children":7177},{"style":3040},[7178],{"type":213,"value":2152},{"type":208,"tag":216,"props":7180,"children":7181},{"style":3030},[7182],{"type":213,"value":498},{"type":208,"tag":216,"props":7184,"children":7185},{"style":3053},[7186],{"type":213,"value":6378},{"type":208,"tag":216,"props":7188,"children":7189},{"style":3030},[7190],{"type":213,"value":6383},{"type":208,"tag":216,"props":7192,"children":7193},{"style":3070},[7194],{"type":213,"value":1024},{"type":208,"tag":216,"props":7196,"children":7197},{"style":3030},[7198],{"type":213,"value":513},{"type":208,"tag":216,"props":7200,"children":7201},{"class":264,"line":306},[7202],{"type":208,"tag":216,"props":7203,"children":7204},{"emptyLinePlaceholder":295},[7205],{"type":213,"value":296},{"type":208,"tag":216,"props":7207,"children":7208},{"class":264,"line":339},[7209,7213,7218,7222,7226,7230,7234],{"type":208,"tag":216,"props":7210,"children":7211},{"style":3065},[7212],{"type":213,"value":269},{"type":208,"tag":216,"props":7214,"children":7215},{"style":3070},[7216],{"type":213,"value":7217}," echoed",{"type":208,"tag":216,"props":7219,"children":7220},{"style":3065},[7221],{"type":213,"value":314},{"type":208,"tag":216,"props":7223,"children":7224},{"style":3040},[7225],{"type":213,"value":3341},{"type":208,"tag":216,"props":7227,"children":7228},{"style":3030},[7229],{"type":213,"value":3346},{"type":208,"tag":216,"props":7231,"children":7232},{"style":3065},[7233],{"type":213,"value":1590},{"type":208,"tag":216,"props":7235,"children":7236},{"style":3030},[7237],{"type":213,"value":1330},{"type":208,"tag":216,"props":7239,"children":7240},{"class":264,"line":344},[7241,7245,7249,7253],{"type":208,"tag":216,"props":7242,"children":7243},{"style":3065},[7244],{"type":213,"value":1597},{"type":208,"tag":216,"props":7246,"children":7247},{"style":3070},[7248],{"type":213,"value":2324},{"type":208,"tag":216,"props":7250,"children":7251},{"style":3065},[7252],{"type":213,"value":314},{"type":208,"tag":216,"props":7254,"children":7255},{"style":3030},[7256],{"type":213,"value":6495},{"type":208,"tag":216,"props":7258,"children":7259},{"class":264,"line":350},[7260,7264,7269,7274,7279,7283,7287],{"type":208,"tag":216,"props":7261,"children":7262},{"style":3065},[7263],{"type":213,"value":1688},{"type":208,"tag":216,"props":7265,"children":7266},{"style":3030},[7267],{"type":213,"value":7268}," data ",{"type":208,"tag":216,"props":7270,"children":7271},{"style":3065},[7272],{"type":213,"value":7273},"&&",{"type":208,"tag":216,"props":7275,"children":7276},{"style":3065},[7277],{"type":213,"value":7278}," typeof",{"type":208,"tag":216,"props":7280,"children":7281},{"style":3030},[7282],{"type":213,"value":7268},{"type":208,"tag":216,"props":7284,"children":7285},{"style":3065},[7286],{"type":213,"value":2534},{"type":208,"tag":216,"props":7288,"children":7289},{"style":3053},[7290],{"type":213,"value":7291}," 'object'\n",{"type":208,"tag":216,"props":7293,"children":7294},{"class":264,"line":376},[7295,7300,7305,7309,7313,7317,7321,7325],{"type":208,"tag":216,"props":7296,"children":7297},{"style":3065},[7298],{"type":213,"value":7299},"    ?",{"type":208,"tag":216,"props":7301,"children":7302},{"style":3030},[7303],{"type":213,"value":7304}," (data ",{"type":208,"tag":216,"props":7306,"children":7307},{"style":3065},[7308],{"type":213,"value":2511},{"type":208,"tag":216,"props":7310,"children":7311},{"style":3030},[7312],{"type":213,"value":273},{"type":208,"tag":216,"props":7314,"children":7315},{"style":3093},[7316],{"type":213,"value":864},{"type":208,"tag":216,"props":7318,"children":7319},{"style":3065},[7320],{"type":213,"value":2651},{"type":208,"tag":216,"props":7322,"children":7323},{"style":3070},[7324],{"type":213,"value":1457},{"type":208,"tag":216,"props":7326,"children":7327},{"style":3030},[7328],{"type":213,"value":7329}," }).authHeader\n",{"type":208,"tag":216,"props":7331,"children":7332},{"class":264,"line":388},[7333,7338],{"type":208,"tag":216,"props":7334,"children":7335},{"style":3065},[7336],{"type":213,"value":7337},"    :",{"type":208,"tag":216,"props":7339,"children":7340},{"style":3070},[7341],{"type":213,"value":3416},{"type":208,"tag":216,"props":7343,"children":7344},{"class":264,"line":406},[7345],{"type":208,"tag":216,"props":7346,"children":7347},{"style":3030},[7348],{"type":213,"value":409},{"type":208,"tag":216,"props":7350,"children":7351},{"class":264,"line":412},[7352,7356,7360],{"type":208,"tag":216,"props":7353,"children":7354},{"style":3030},[7355],{"type":213,"value":1506},{"type":208,"tag":216,"props":7357,"children":7358},{"style":3035},[7359],{"type":213,"value":1257},{"type":208,"tag":216,"props":7361,"children":7362},{"style":3030},[7363],{"type":213,"value":1271},{"type":208,"tag":216,"props":7365,"children":7366},{"class":264,"line":417},[7367],{"type":208,"tag":216,"props":7368,"children":7369},{"emptyLinePlaceholder":295},[7370],{"type":213,"value":296},{"type":208,"tag":216,"props":7372,"children":7373},{"class":264,"line":423},[7374,7378,7382],{"type":208,"tag":216,"props":7375,"children":7376},{"style":3030},[7377],{"type":213,"value":323},{"type":208,"tag":216,"props":7379,"children":7380},{"style":3035},[7381],{"type":213,"value":3662},{"type":208,"tag":216,"props":7383,"children":7384},{"style":3030},[7385],{"type":213,"value":1271},{"type":208,"tag":216,"props":7387,"children":7388},{"class":264,"line":454},[7389,7393,7397,7401,7405,7409],{"type":208,"tag":216,"props":7390,"children":7391},{"style":3030},[7392],{"type":213,"value":3675},{"type":208,"tag":216,"props":7394,"children":7395},{"style":3035},[7396],{"type":213,"value":3680},{"type":208,"tag":216,"props":7398,"children":7399},{"style":3040},[7400],{"type":213,"value":3685},{"type":208,"tag":216,"props":7402,"children":7403},{"style":3030},[7404],{"type":213,"value":282},{"type":208,"tag":216,"props":7406,"children":7407},{"style":3053},[7408],{"type":213,"value":3694},{"type":208,"tag":216,"props":7410,"children":7411},{"style":3030},[7412],{"type":213,"value":1271},{"type":208,"tag":216,"props":7414,"children":7415},{"class":264,"line":464},[7416,7420,7424,7428,7432,7436,7440,7444,7448,7452,7456,7465,7469,7473,7477,7481,7485,7489,7493,7497],{"type":208,"tag":216,"props":7417,"children":7418},{"style":3030},[7419],{"type":213,"value":3707},{"type":208,"tag":216,"props":7421,"children":7422},{"style":3035},[7423],{"type":213,"value":3849},{"type":208,"tag":216,"props":7425,"children":7426},{"style":3040},[7427],{"type":213,"value":3854},{"type":208,"tag":216,"props":7429,"children":7430},{"style":3030},[7431],{"type":213,"value":282},{"type":208,"tag":216,"props":7433,"children":7434},{"style":3053},[7435],{"type":213,"value":3863},{"type":208,"tag":216,"props":7437,"children":7438},{"style":3040},[7439],{"type":213,"value":3797},{"type":208,"tag":216,"props":7441,"children":7442},{"style":3030},[7443],{"type":213,"value":282},{"type":208,"tag":216,"props":7445,"children":7446},{"style":3053},[7447],{"type":213,"value":3876},{"type":208,"tag":216,"props":7449,"children":7450},{"style":3040},[7451],{"type":213,"value":3881},{"type":208,"tag":216,"props":7453,"children":7454},{"style":3030},[7455],{"type":213,"value":282},{"type":208,"tag":216,"props":7457,"children":7458},{"style":3053},[7459,7463],{"type":208,"tag":3890,"props":7460,"children":7462},{"class":3892,"style":7461},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fsend.svg?color=%23000)",[],{"type":213,"value":7464},"\"i-lucide-send\"",{"type":208,"tag":216,"props":7466,"children":7467},{"style":3030},[7468],{"type":213,"value":3927},{"type":208,"tag":216,"props":7470,"children":7471},{"style":3040},[7472],{"type":213,"value":3932},{"type":208,"tag":216,"props":7474,"children":7475},{"style":3030},[7476],{"type":213,"value":282},{"type":208,"tag":216,"props":7478,"children":7479},{"style":3053},[7480],{"type":213,"value":3760},{"type":208,"tag":216,"props":7482,"children":7483},{"style":3030},[7484],{"type":213,"value":6627},{"type":208,"tag":216,"props":7486,"children":7487},{"style":3040},[7488],{"type":213,"value":6632},{"type":208,"tag":216,"props":7490,"children":7491},{"style":3030},[7492],{"type":213,"value":6637},{"type":208,"tag":216,"props":7494,"children":7495},{"style":3053},[7496],{"type":213,"value":3760},{"type":208,"tag":216,"props":7498,"children":7499},{"style":3030},[7500],{"type":213,"value":1271},{"type":208,"tag":216,"props":7502,"children":7503},{"class":264,"line":474},[7504],{"type":208,"tag":216,"props":7505,"children":7506},{"style":3030},[7507],{"type":213,"value":7508},"      请求 \u002Fdemo\u002Fprotected 查看注入\n",{"type":208,"tag":216,"props":7510,"children":7511},{"class":264,"line":479},[7512,7516,7520],{"type":208,"tag":216,"props":7513,"children":7514},{"style":3030},[7515],{"type":213,"value":3987},{"type":208,"tag":216,"props":7517,"children":7518},{"style":3035},[7519],{"type":213,"value":3849},{"type":208,"tag":216,"props":7521,"children":7522},{"style":3030},[7523],{"type":213,"value":1271},{"type":208,"tag":216,"props":7525,"children":7526},{"class":264,"line":484},[7527,7531,7535,7539,7543,7547],{"type":208,"tag":216,"props":7528,"children":7529},{"style":3030},[7530],{"type":213,"value":3707},{"type":208,"tag":216,"props":7532,"children":7533},{"style":3035},[7534],{"type":213,"value":254},{"type":208,"tag":216,"props":7536,"children":7537},{"style":3040},[7538],{"type":213,"value":3685},{"type":208,"tag":216,"props":7540,"children":7541},{"style":3030},[7542],{"type":213,"value":282},{"type":208,"tag":216,"props":7544,"children":7545},{"style":3053},[7546],{"type":213,"value":4074},{"type":208,"tag":216,"props":7548,"children":7549},{"style":3030},[7550],{"type":213,"value":7551},">{{ {\n",{"type":208,"tag":216,"props":7553,"children":7554},{"class":264,"line":490},[7555],{"type":208,"tag":216,"props":7556,"children":7557},{"style":3030},[7558],{"type":213,"value":7559},"      headerName: publicConfig.auth?.headerName ?? 'Authorization',\n",{"type":208,"tag":216,"props":7561,"children":7562},{"class":264,"line":1435},[7563],{"type":208,"tag":216,"props":7564,"children":7565},{"style":3030},[7566],{"type":213,"value":7567},"      tokenType: publicConfig.auth?.tokenType ?? 'Bearer',\n",{"type":208,"tag":216,"props":7569,"children":7570},{"class":264,"line":1441},[7571],{"type":208,"tag":216,"props":7572,"children":7573},{"style":3030},[7574],{"type":213,"value":7575},"      echoed\n",{"type":208,"tag":216,"props":7577,"children":7578},{"class":264,"line":1462},[7579,7584,7588],{"type":208,"tag":216,"props":7580,"children":7581},{"style":3030},[7582],{"type":213,"value":7583},"    } }}\u003C\u002F",{"type":208,"tag":216,"props":7585,"children":7586},{"style":3035},[7587],{"type":213,"value":254},{"type":208,"tag":216,"props":7589,"children":7590},{"style":3030},[7591],{"type":213,"value":1271},{"type":208,"tag":216,"props":7593,"children":7594},{"class":264,"line":1484},[7595,7599,7603,7607,7611,7615],{"type":208,"tag":216,"props":7596,"children":7597},{"style":3030},[7598],{"type":213,"value":3707},{"type":208,"tag":216,"props":7600,"children":7601},{"style":3035},[7602],{"type":213,"value":209},{"type":208,"tag":216,"props":7604,"children":7605},{"style":3040},[7606],{"type":213,"value":3685},{"type":208,"tag":216,"props":7608,"children":7609},{"style":3030},[7610],{"type":213,"value":282},{"type":208,"tag":216,"props":7612,"children":7613},{"style":3053},[7614],{"type":213,"value":4020},{"type":208,"tag":216,"props":7616,"children":7617},{"style":3030},[7618],{"type":213,"value":1271},{"type":208,"tag":216,"props":7620,"children":7621},{"class":264,"line":1498},[7622,7627,7631,7636,7640],{"type":208,"tag":216,"props":7623,"children":7624},{"style":3030},[7625],{"type":213,"value":7626},"      登录后再次请求，\u003C",{"type":208,"tag":216,"props":7628,"children":7629},{"style":3035},[7630],{"type":213,"value":235},{"type":208,"tag":216,"props":7632,"children":7633},{"style":3030},[7634],{"type":213,"value":7635},">echoed\u003C\u002F",{"type":208,"tag":216,"props":7637,"children":7638},{"style":3035},[7639],{"type":213,"value":235},{"type":208,"tag":216,"props":7641,"children":7642},{"style":3030},[7643],{"type":213,"value":7644},"> 字段会展示拦截器实际注入的 Authorization 头。\n",{"type":208,"tag":216,"props":7646,"children":7647},{"class":264,"line":1503},[7648,7652,7656],{"type":208,"tag":216,"props":7649,"children":7650},{"style":3030},[7651],{"type":213,"value":3987},{"type":208,"tag":216,"props":7653,"children":7654},{"style":3035},[7655],{"type":213,"value":209},{"type":208,"tag":216,"props":7657,"children":7658},{"style":3030},[7659],{"type":213,"value":1271},{"type":208,"tag":216,"props":7661,"children":7662},{"class":264,"line":3574},[7663,7667,7671],{"type":208,"tag":216,"props":7664,"children":7665},{"style":3030},[7666],{"type":213,"value":4096},{"type":208,"tag":216,"props":7668,"children":7669},{"style":3035},[7670],{"type":213,"value":3680},{"type":208,"tag":216,"props":7672,"children":7673},{"style":3030},[7674],{"type":213,"value":1271},{"type":208,"tag":216,"props":7676,"children":7677},{"class":264,"line":3582},[7678,7682,7686],{"type":208,"tag":216,"props":7679,"children":7680},{"style":3030},[7681],{"type":213,"value":1506},{"type":208,"tag":216,"props":7683,"children":7684},{"style":3035},[7685],{"type":213,"value":3662},{"type":208,"tag":216,"props":7687,"children":7688},{"style":3030},[7689],{"type":213,"value":1271},{"type":208,"tag":2933,"props":7691,"children":7692},{},[7693],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":7695},[],{"data":7697,"body":7698,"toc":8532},{"title":259,"description":259},{"type":205,"children":7699},[7700,8528],{"type":208,"tag":254,"props":7701,"children":7703},{"className":1245,"code":7702,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'no-unwrap' | 'no-business-check' | 'combined'\n}>()\n\nconst fetchers = {\n  'default': useApiFetch('\u002Fprofile', { key: 'unwrap-default', immediate: false }),\n  'no-unwrap': useApiFetch('\u002Fprofile', { key: 'unwrap-no-unwrap', immediate: false, unwrap: false }),\n  'no-business-check': useApiFetch('\u002Fdemo\u002Flegacy', { key: 'unwrap-no-business-check', immediate: false, businessCheck: false }),\n  'combined': useApiFetch('\u002Fdemo\u002Fexternal', { key: 'unwrap-combined', immediate: false, businessCheck: false, unwrap: false })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。',\n  'no-unwrap': 'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。',\n  'no-business-check': 'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。',\n  'combined': 'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n}\n\nwatch(() => props.mode, () => active.value.execute(), { immediate: true })\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003CUBadge variant=\"subtle\">\n      {{ mode }}\n    \u003C\u002FUBadge>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ active.data.value }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[7704],{"type":208,"tag":235,"props":7705,"children":7706},{"__ignoreMap":259},[7707,7738,7761,7804,7811,7818,7838,7886,7939,7994,8056,8063,8070,8103,8110,8162,8182,8202,8222,8238,8245,8252,8298,8313,8320,8335,8362,8389,8397,8412,8439,8447,8462,8498,8513],{"type":208,"tag":216,"props":7708,"children":7709},{"class":264,"line":265},[7710,7714,7718,7722,7726,7730,7734],{"type":208,"tag":216,"props":7711,"children":7712},{"style":3030},[7713],{"type":213,"value":323},{"type":208,"tag":216,"props":7715,"children":7716},{"style":3035},[7717],{"type":213,"value":1257},{"type":208,"tag":216,"props":7719,"children":7720},{"style":3040},[7721],{"type":213,"value":1260},{"type":208,"tag":216,"props":7723,"children":7724},{"style":3040},[7725],{"type":213,"value":1263},{"type":208,"tag":216,"props":7727,"children":7728},{"style":3030},[7729],{"type":213,"value":282},{"type":208,"tag":216,"props":7731,"children":7732},{"style":3053},[7733],{"type":213,"value":1268},{"type":208,"tag":216,"props":7735,"children":7736},{"style":3030},[7737],{"type":213,"value":1271},{"type":208,"tag":216,"props":7739,"children":7740},{"class":264,"line":292},[7741,7745,7749,7753,7757],{"type":208,"tag":216,"props":7742,"children":7743},{"style":3065},[7744],{"type":213,"value":269},{"type":208,"tag":216,"props":7746,"children":7747},{"style":3070},[7748],{"type":213,"value":3073},{"type":208,"tag":216,"props":7750,"children":7751},{"style":3065},[7752],{"type":213,"value":314},{"type":208,"tag":216,"props":7754,"children":7755},{"style":3040},[7756],{"type":213,"value":3082},{"type":208,"tag":216,"props":7758,"children":7759},{"style":3030},[7760],{"type":213,"value":3087},{"type":208,"tag":216,"props":7762,"children":7763},{"class":264,"line":299},[7764,7769,7773,7777,7781,7786,7790,7795,7799],{"type":208,"tag":216,"props":7765,"children":7766},{"style":3093},[7767],{"type":213,"value":7768},"  mode",{"type":208,"tag":216,"props":7770,"children":7771},{"style":3065},[7772],{"type":213,"value":1316},{"type":208,"tag":216,"props":7774,"children":7775},{"style":3053},[7776],{"type":213,"value":3104},{"type":208,"tag":216,"props":7778,"children":7779},{"style":3065},[7780],{"type":213,"value":2821},{"type":208,"tag":216,"props":7782,"children":7783},{"style":3053},[7784],{"type":213,"value":7785}," 'no-unwrap'",{"type":208,"tag":216,"props":7787,"children":7788},{"style":3065},[7789],{"type":213,"value":2821},{"type":208,"tag":216,"props":7791,"children":7792},{"style":3053},[7793],{"type":213,"value":7794}," 'no-business-check'",{"type":208,"tag":216,"props":7796,"children":7797},{"style":3065},[7798],{"type":213,"value":2821},{"type":208,"tag":216,"props":7800,"children":7801},{"style":3053},[7802],{"type":213,"value":7803}," 'combined'\n",{"type":208,"tag":216,"props":7805,"children":7806},{"class":264,"line":306},[7807],{"type":208,"tag":216,"props":7808,"children":7809},{"style":3030},[7810],{"type":213,"value":3121},{"type":208,"tag":216,"props":7812,"children":7813},{"class":264,"line":339},[7814],{"type":208,"tag":216,"props":7815,"children":7816},{"emptyLinePlaceholder":295},[7817],{"type":213,"value":296},{"type":208,"tag":216,"props":7819,"children":7820},{"class":264,"line":344},[7821,7825,7830,7834],{"type":208,"tag":216,"props":7822,"children":7823},{"style":3065},[7824],{"type":213,"value":269},{"type":208,"tag":216,"props":7826,"children":7827},{"style":3070},[7828],{"type":213,"value":7829}," fetchers",{"type":208,"tag":216,"props":7831,"children":7832},{"style":3065},[7833],{"type":213,"value":314},{"type":208,"tag":216,"props":7835,"children":7836},{"style":3030},[7837],{"type":213,"value":1330},{"type":208,"tag":216,"props":7839,"children":7840},{"class":264,"line":350},[7841,7846,7850,7854,7858,7862,7867,7872,7877,7881],{"type":208,"tag":216,"props":7842,"children":7843},{"style":3053},[7844],{"type":213,"value":7845},"  'default'",{"type":208,"tag":216,"props":7847,"children":7848},{"style":3030},[7849],{"type":213,"value":913},{"type":208,"tag":216,"props":7851,"children":7852},{"style":3040},[7853],{"type":213,"value":163},{"type":208,"tag":216,"props":7855,"children":7856},{"style":3030},[7857],{"type":213,"value":498},{"type":208,"tag":216,"props":7859,"children":7860},{"style":3053},[7861],{"type":213,"value":3461},{"type":208,"tag":216,"props":7863,"children":7864},{"style":3030},[7865],{"type":213,"value":7866},", { key: ",{"type":208,"tag":216,"props":7868,"children":7869},{"style":3053},[7870],{"type":213,"value":7871},"'unwrap-default'",{"type":208,"tag":216,"props":7873,"children":7874},{"style":3030},[7875],{"type":213,"value":7876},", immediate: ",{"type":208,"tag":216,"props":7878,"children":7879},{"style":3070},[7880],{"type":213,"value":1024},{"type":208,"tag":216,"props":7882,"children":7883},{"style":3030},[7884],{"type":213,"value":7885}," }),\n",{"type":208,"tag":216,"props":7887,"children":7888},{"class":264,"line":376},[7889,7894,7898,7902,7906,7910,7914,7919,7923,7927,7931,7935],{"type":208,"tag":216,"props":7890,"children":7891},{"style":3053},[7892],{"type":213,"value":7893},"  'no-unwrap'",{"type":208,"tag":216,"props":7895,"children":7896},{"style":3030},[7897],{"type":213,"value":913},{"type":208,"tag":216,"props":7899,"children":7900},{"style":3040},[7901],{"type":213,"value":163},{"type":208,"tag":216,"props":7903,"children":7904},{"style":3030},[7905],{"type":213,"value":498},{"type":208,"tag":216,"props":7907,"children":7908},{"style":3053},[7909],{"type":213,"value":3461},{"type":208,"tag":216,"props":7911,"children":7912},{"style":3030},[7913],{"type":213,"value":7866},{"type":208,"tag":216,"props":7915,"children":7916},{"style":3053},[7917],{"type":213,"value":7918},"'unwrap-no-unwrap'",{"type":208,"tag":216,"props":7920,"children":7921},{"style":3030},[7922],{"type":213,"value":7876},{"type":208,"tag":216,"props":7924,"children":7925},{"style":3070},[7926],{"type":213,"value":1024},{"type":208,"tag":216,"props":7928,"children":7929},{"style":3030},[7930],{"type":213,"value":1027},{"type":208,"tag":216,"props":7932,"children":7933},{"style":3070},[7934],{"type":213,"value":1024},{"type":208,"tag":216,"props":7936,"children":7937},{"style":3030},[7938],{"type":213,"value":7885},{"type":208,"tag":216,"props":7940,"children":7941},{"class":264,"line":388},[7942,7947,7951,7955,7959,7964,7968,7973,7977,7981,7986,7990],{"type":208,"tag":216,"props":7943,"children":7944},{"style":3053},[7945],{"type":213,"value":7946},"  'no-business-check'",{"type":208,"tag":216,"props":7948,"children":7949},{"style":3030},[7950],{"type":213,"value":913},{"type":208,"tag":216,"props":7952,"children":7953},{"style":3040},[7954],{"type":213,"value":163},{"type":208,"tag":216,"props":7956,"children":7957},{"style":3030},[7958],{"type":213,"value":498},{"type":208,"tag":216,"props":7960,"children":7961},{"style":3053},[7962],{"type":213,"value":7963},"'\u002Fdemo\u002Flegacy'",{"type":208,"tag":216,"props":7965,"children":7966},{"style":3030},[7967],{"type":213,"value":7866},{"type":208,"tag":216,"props":7969,"children":7970},{"style":3053},[7971],{"type":213,"value":7972},"'unwrap-no-business-check'",{"type":208,"tag":216,"props":7974,"children":7975},{"style":3030},[7976],{"type":213,"value":7876},{"type":208,"tag":216,"props":7978,"children":7979},{"style":3070},[7980],{"type":213,"value":1024},{"type":208,"tag":216,"props":7982,"children":7983},{"style":3030},[7984],{"type":213,"value":7985},", businessCheck: ",{"type":208,"tag":216,"props":7987,"children":7988},{"style":3070},[7989],{"type":213,"value":1024},{"type":208,"tag":216,"props":7991,"children":7992},{"style":3030},[7993],{"type":213,"value":7885},{"type":208,"tag":216,"props":7995,"children":7996},{"class":264,"line":406},[7997,8002,8006,8010,8014,8019,8023,8028,8032,8036,8040,8044,8048,8052],{"type":208,"tag":216,"props":7998,"children":7999},{"style":3053},[8000],{"type":213,"value":8001},"  'combined'",{"type":208,"tag":216,"props":8003,"children":8004},{"style":3030},[8005],{"type":213,"value":913},{"type":208,"tag":216,"props":8007,"children":8008},{"style":3040},[8009],{"type":213,"value":163},{"type":208,"tag":216,"props":8011,"children":8012},{"style":3030},[8013],{"type":213,"value":498},{"type":208,"tag":216,"props":8015,"children":8016},{"style":3053},[8017],{"type":213,"value":8018},"'\u002Fdemo\u002Fexternal'",{"type":208,"tag":216,"props":8020,"children":8021},{"style":3030},[8022],{"type":213,"value":7866},{"type":208,"tag":216,"props":8024,"children":8025},{"style":3053},[8026],{"type":213,"value":8027},"'unwrap-combined'",{"type":208,"tag":216,"props":8029,"children":8030},{"style":3030},[8031],{"type":213,"value":7876},{"type":208,"tag":216,"props":8033,"children":8034},{"style":3070},[8035],{"type":213,"value":1024},{"type":208,"tag":216,"props":8037,"children":8038},{"style":3030},[8039],{"type":213,"value":7985},{"type":208,"tag":216,"props":8041,"children":8042},{"style":3070},[8043],{"type":213,"value":1024},{"type":208,"tag":216,"props":8045,"children":8046},{"style":3030},[8047],{"type":213,"value":1027},{"type":208,"tag":216,"props":8049,"children":8050},{"style":3070},[8051],{"type":213,"value":1024},{"type":208,"tag":216,"props":8053,"children":8054},{"style":3030},[8055],{"type":213,"value":513},{"type":208,"tag":216,"props":8057,"children":8058},{"class":264,"line":412},[8059],{"type":208,"tag":216,"props":8060,"children":8061},{"style":3030},[8062],{"type":213,"value":1428},{"type":208,"tag":216,"props":8064,"children":8065},{"class":264,"line":417},[8066],{"type":208,"tag":216,"props":8067,"children":8068},{"emptyLinePlaceholder":295},[8069],{"type":213,"value":296},{"type":208,"tag":216,"props":8071,"children":8072},{"class":264,"line":423},[8073,8077,8082,8086,8090,8094,8098],{"type":208,"tag":216,"props":8074,"children":8075},{"style":3065},[8076],{"type":213,"value":269},{"type":208,"tag":216,"props":8078,"children":8079},{"style":3070},[8080],{"type":213,"value":8081}," active",{"type":208,"tag":216,"props":8083,"children":8084},{"style":3065},[8085],{"type":213,"value":314},{"type":208,"tag":216,"props":8087,"children":8088},{"style":3040},[8089],{"type":213,"value":3341},{"type":208,"tag":216,"props":8091,"children":8092},{"style":3030},[8093],{"type":213,"value":3346},{"type":208,"tag":216,"props":8095,"children":8096},{"style":3065},[8097],{"type":213,"value":1590},{"type":208,"tag":216,"props":8099,"children":8100},{"style":3030},[8101],{"type":213,"value":8102}," fetchers[props.mode])\n",{"type":208,"tag":216,"props":8104,"children":8105},{"class":264,"line":454},[8106],{"type":208,"tag":216,"props":8107,"children":8108},{"emptyLinePlaceholder":295},[8109],{"type":213,"value":296},{"type":208,"tag":216,"props":8111,"children":8112},{"class":264,"line":464},[8113,8117,8122,8126,8131,8135,8140,8145,8149,8154,8158],{"type":208,"tag":216,"props":8114,"children":8115},{"style":3065},[8116],{"type":213,"value":269},{"type":208,"tag":216,"props":8118,"children":8119},{"style":3070},[8120],{"type":213,"value":8121}," hints",{"type":208,"tag":216,"props":8123,"children":8124},{"style":3065},[8125],{"type":213,"value":1316},{"type":208,"tag":216,"props":8127,"children":8128},{"style":3040},[8129],{"type":213,"value":8130}," Record",{"type":208,"tag":216,"props":8132,"children":8133},{"style":3030},[8134],{"type":213,"value":323},{"type":208,"tag":216,"props":8136,"children":8137},{"style":3065},[8138],{"type":213,"value":8139},"typeof",{"type":208,"tag":216,"props":8141,"children":8142},{"style":3030},[8143],{"type":213,"value":8144}," props.mode, ",{"type":208,"tag":216,"props":8146,"children":8147},{"style":3070},[8148],{"type":213,"value":2890},{"type":208,"tag":216,"props":8150,"children":8151},{"style":3030},[8152],{"type":213,"value":8153},"> ",{"type":208,"tag":216,"props":8155,"children":8156},{"style":3065},[8157],{"type":213,"value":282},{"type":208,"tag":216,"props":8159,"children":8160},{"style":3030},[8161],{"type":213,"value":1330},{"type":208,"tag":216,"props":8163,"children":8164},{"class":264,"line":474},[8165,8169,8173,8178],{"type":208,"tag":216,"props":8166,"children":8167},{"style":3053},[8168],{"type":213,"value":7845},{"type":208,"tag":216,"props":8170,"children":8171},{"style":3030},[8172],{"type":213,"value":913},{"type":208,"tag":216,"props":8174,"children":8175},{"style":3053},[8176],{"type":213,"value":8177},"'按 dataKey（默认 data）抽取业务数据，调用方直接拿到去信封后的对象。'",{"type":208,"tag":216,"props":8179,"children":8180},{"style":3030},[8181],{"type":213,"value":385},{"type":208,"tag":216,"props":8183,"children":8184},{"class":264,"line":479},[8185,8189,8193,8198],{"type":208,"tag":216,"props":8186,"children":8187},{"style":3053},[8188],{"type":213,"value":7893},{"type":208,"tag":216,"props":8190,"children":8191},{"style":3030},[8192],{"type":213,"value":913},{"type":208,"tag":216,"props":8194,"children":8195},{"style":3053},[8196],{"type":213,"value":8197},"'unwrap: false 不重写 response._data，保留完整 code\u002Fmessage\u002Fdata 信封。'",{"type":208,"tag":216,"props":8199,"children":8200},{"style":3030},[8201],{"type":213,"value":385},{"type":208,"tag":216,"props":8203,"children":8204},{"class":264,"line":484},[8205,8209,8213,8218],{"type":208,"tag":216,"props":8206,"children":8207},{"style":3053},[8208],{"type":213,"value":7946},{"type":208,"tag":216,"props":8210,"children":8211},{"style":3030},[8212],{"type":213,"value":913},{"type":208,"tag":216,"props":8214,"children":8215},{"style":3053},[8216],{"type":213,"value":8217},"'legacy 接口未返回 code 字段，关闭校验后仍按 dataKey 解包出业务数据。'",{"type":208,"tag":216,"props":8219,"children":8220},{"style":3030},[8221],{"type":213,"value":385},{"type":208,"tag":216,"props":8223,"children":8224},{"class":264,"line":490},[8225,8229,8233],{"type":208,"tag":216,"props":8226,"children":8227},{"style":3053},[8228],{"type":213,"value":8001},{"type":208,"tag":216,"props":8230,"children":8231},{"style":3030},[8232],{"type":213,"value":913},{"type":208,"tag":216,"props":8234,"children":8235},{"style":3053},[8236],{"type":213,"value":8237},"'external 接口信封非标，同时关闭两项由调用方完全自处理响应。'\n",{"type":208,"tag":216,"props":8239,"children":8240},{"class":264,"line":1435},[8241],{"type":208,"tag":216,"props":8242,"children":8243},{"style":3030},[8244],{"type":213,"value":1428},{"type":208,"tag":216,"props":8246,"children":8247},{"class":264,"line":1441},[8248],{"type":208,"tag":216,"props":8249,"children":8250},{"emptyLinePlaceholder":295},[8251],{"type":213,"value":296},{"type":208,"tag":216,"props":8253,"children":8254},{"class":264,"line":1462},[8255,8259,8263,8267,8272,8276,8281,8285,8290,8294],{"type":208,"tag":216,"props":8256,"children":8257},{"style":3040},[8258],{"type":213,"value":3604},{"type":208,"tag":216,"props":8260,"children":8261},{"style":3030},[8262],{"type":213,"value":3346},{"type":208,"tag":216,"props":8264,"children":8265},{"style":3065},[8266],{"type":213,"value":1590},{"type":208,"tag":216,"props":8268,"children":8269},{"style":3030},[8270],{"type":213,"value":8271}," props.mode, () ",{"type":208,"tag":216,"props":8273,"children":8274},{"style":3065},[8275],{"type":213,"value":1590},{"type":208,"tag":216,"props":8277,"children":8278},{"style":3030},[8279],{"type":213,"value":8280}," active.value.",{"type":208,"tag":216,"props":8282,"children":8283},{"style":3040},[8284],{"type":213,"value":6632},{"type":208,"tag":216,"props":8286,"children":8287},{"style":3030},[8288],{"type":213,"value":8289},"(), { immediate: ",{"type":208,"tag":216,"props":8291,"children":8292},{"style":3070},[8293],{"type":213,"value":727},{"type":208,"tag":216,"props":8295,"children":8296},{"style":3030},[8297],{"type":213,"value":513},{"type":208,"tag":216,"props":8299,"children":8300},{"class":264,"line":1484},[8301,8305,8309],{"type":208,"tag":216,"props":8302,"children":8303},{"style":3030},[8304],{"type":213,"value":1506},{"type":208,"tag":216,"props":8306,"children":8307},{"style":3035},[8308],{"type":213,"value":1257},{"type":208,"tag":216,"props":8310,"children":8311},{"style":3030},[8312],{"type":213,"value":1271},{"type":208,"tag":216,"props":8314,"children":8315},{"class":264,"line":1498},[8316],{"type":208,"tag":216,"props":8317,"children":8318},{"emptyLinePlaceholder":295},[8319],{"type":213,"value":296},{"type":208,"tag":216,"props":8321,"children":8322},{"class":264,"line":1503},[8323,8327,8331],{"type":208,"tag":216,"props":8324,"children":8325},{"style":3030},[8326],{"type":213,"value":323},{"type":208,"tag":216,"props":8328,"children":8329},{"style":3035},[8330],{"type":213,"value":3662},{"type":208,"tag":216,"props":8332,"children":8333},{"style":3030},[8334],{"type":213,"value":1271},{"type":208,"tag":216,"props":8336,"children":8337},{"class":264,"line":3574},[8338,8342,8346,8350,8354,8358],{"type":208,"tag":216,"props":8339,"children":8340},{"style":3030},[8341],{"type":213,"value":3675},{"type":208,"tag":216,"props":8343,"children":8344},{"style":3035},[8345],{"type":213,"value":3680},{"type":208,"tag":216,"props":8347,"children":8348},{"style":3040},[8349],{"type":213,"value":3685},{"type":208,"tag":216,"props":8351,"children":8352},{"style":3030},[8353],{"type":213,"value":282},{"type":208,"tag":216,"props":8355,"children":8356},{"style":3053},[8357],{"type":213,"value":3694},{"type":208,"tag":216,"props":8359,"children":8360},{"style":3030},[8361],{"type":213,"value":1271},{"type":208,"tag":216,"props":8363,"children":8364},{"class":264,"line":3582},[8365,8369,8373,8377,8381,8385],{"type":208,"tag":216,"props":8366,"children":8367},{"style":3030},[8368],{"type":213,"value":3707},{"type":208,"tag":216,"props":8370,"children":8371},{"style":3035},[8372],{"type":213,"value":3742},{"type":208,"tag":216,"props":8374,"children":8375},{"style":3040},[8376],{"type":213,"value":3797},{"type":208,"tag":216,"props":8378,"children":8379},{"style":3030},[8380],{"type":213,"value":282},{"type":208,"tag":216,"props":8382,"children":8383},{"style":3053},[8384],{"type":213,"value":3806},{"type":208,"tag":216,"props":8386,"children":8387},{"style":3030},[8388],{"type":213,"value":1271},{"type":208,"tag":216,"props":8390,"children":8391},{"class":264,"line":3590},[8392],{"type":208,"tag":216,"props":8393,"children":8394},{"style":3030},[8395],{"type":213,"value":8396},"      {{ mode }}\n",{"type":208,"tag":216,"props":8398,"children":8399},{"class":264,"line":3598},[8400,8404,8408],{"type":208,"tag":216,"props":8401,"children":8402},{"style":3030},[8403],{"type":213,"value":3987},{"type":208,"tag":216,"props":8405,"children":8406},{"style":3035},[8407],{"type":213,"value":3742},{"type":208,"tag":216,"props":8409,"children":8410},{"style":3030},[8411],{"type":213,"value":1271},{"type":208,"tag":216,"props":8413,"children":8414},{"class":264,"line":3628},[8415,8419,8423,8427,8431,8435],{"type":208,"tag":216,"props":8416,"children":8417},{"style":3030},[8418],{"type":213,"value":3707},{"type":208,"tag":216,"props":8420,"children":8421},{"style":3035},[8422],{"type":213,"value":209},{"type":208,"tag":216,"props":8424,"children":8425},{"style":3040},[8426],{"type":213,"value":3685},{"type":208,"tag":216,"props":8428,"children":8429},{"style":3030},[8430],{"type":213,"value":282},{"type":208,"tag":216,"props":8432,"children":8433},{"style":3053},[8434],{"type":213,"value":4020},{"type":208,"tag":216,"props":8436,"children":8437},{"style":3030},[8438],{"type":213,"value":1271},{"type":208,"tag":216,"props":8440,"children":8441},{"class":264,"line":3644},[8442],{"type":208,"tag":216,"props":8443,"children":8444},{"style":3030},[8445],{"type":213,"value":8446},"      {{ hints[mode] }}\n",{"type":208,"tag":216,"props":8448,"children":8449},{"class":264,"line":3652},[8450,8454,8458],{"type":208,"tag":216,"props":8451,"children":8452},{"style":3030},[8453],{"type":213,"value":3987},{"type":208,"tag":216,"props":8455,"children":8456},{"style":3035},[8457],{"type":213,"value":209},{"type":208,"tag":216,"props":8459,"children":8460},{"style":3030},[8461],{"type":213,"value":1271},{"type":208,"tag":216,"props":8463,"children":8464},{"class":264,"line":3669},[8465,8469,8473,8477,8481,8485,8490,8494],{"type":208,"tag":216,"props":8466,"children":8467},{"style":3030},[8468],{"type":213,"value":3707},{"type":208,"tag":216,"props":8470,"children":8471},{"style":3035},[8472],{"type":213,"value":254},{"type":208,"tag":216,"props":8474,"children":8475},{"style":3040},[8476],{"type":213,"value":3685},{"type":208,"tag":216,"props":8478,"children":8479},{"style":3030},[8480],{"type":213,"value":282},{"type":208,"tag":216,"props":8482,"children":8483},{"style":3053},[8484],{"type":213,"value":4074},{"type":208,"tag":216,"props":8486,"children":8487},{"style":3030},[8488],{"type":213,"value":8489},">{{ active.data.value }}\u003C\u002F",{"type":208,"tag":216,"props":8491,"children":8492},{"style":3035},[8493],{"type":213,"value":254},{"type":208,"tag":216,"props":8495,"children":8496},{"style":3030},[8497],{"type":213,"value":1271},{"type":208,"tag":216,"props":8499,"children":8500},{"class":264,"line":3701},[8501,8505,8509],{"type":208,"tag":216,"props":8502,"children":8503},{"style":3030},[8504],{"type":213,"value":4096},{"type":208,"tag":216,"props":8506,"children":8507},{"style":3035},[8508],{"type":213,"value":3680},{"type":208,"tag":216,"props":8510,"children":8511},{"style":3030},[8512],{"type":213,"value":1271},{"type":208,"tag":216,"props":8514,"children":8515},{"class":264,"line":3731},[8516,8520,8524],{"type":208,"tag":216,"props":8517,"children":8518},{"style":3030},[8519],{"type":213,"value":1506},{"type":208,"tag":216,"props":8521,"children":8522},{"style":3035},[8523],{"type":213,"value":3662},{"type":208,"tag":216,"props":8525,"children":8526},{"style":3030},[8527],{"type":213,"value":1271},{"type":208,"tag":2933,"props":8529,"children":8530},{},[8531],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":8533},[],{"data":8535,"body":8536,"toc":9790},{"title":259,"description":259},{"type":205,"children":8537},[8538,9786],{"type":208,"tag":254,"props":8539,"children":8541},{"className":1245,"code":8540,"language":1247,"meta":259,"style":259},"\u003Cscript setup lang=\"ts\">\nconst props = defineProps\u003C{\n  mode: 'default' | 'silent' | 'message' | 'error-only' | 'custom'\n}>()\n\nconst fail = ref(false)\nconst target = () => `\u002Fprofile${fail.value ? '?fail=1' : ''}`\n\nconst fetchers = {\n  'default': useApiFetch(target, { key: 'toast-default', immediate: false }),\n  'silent': useApiFetch(target, { key: 'toast-silent', immediate: false, toast: false }),\n  'message': useApiFetch(target, {\n    key: 'toast-message',\n    immediate: false,\n    toast: { successMessage: '加载成功 ✓', errorMessage: '加载失败 ✗' }\n  }),\n  'error-only': useApiFetch(target, { key: 'toast-error-only', immediate: false, toast: { success: false } }),\n  'custom': useApiFetch(target, {\n    key: 'toast-custom',\n    immediate: false,\n    toast: {\n      success: { color: 'secondary', icon: 'i-lucide-sparkles' },\n      error: { color: 'warning', icon: 'i-lucide-triangle-alert' }\n    }\n  })\n}\n\nconst active = computed(() => fetchers[props.mode])\n\nconst hints: Record\u003Ctypeof props.mode, string> = {\n  'default': '未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。',\n  'silent': 'toast: false 关闭所有单次提示。',\n  'message': 'successMessage \u002F errorMessage 替换默认文案。',\n  'error-only': '{ success: false } 关闭成功提示但保留错误提示。',\n  'custom': '为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n}\n\nconst display = computed(() => active.value.error.value\n  ? { error: active.value.error.value.message }\n  : active.value.data.value)\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"flex flex-col gap-3\">\n    \u003Cdiv class=\"flex items-center gap-3 flex-wrap\">\n      \u003CUSwitch v-model=\"fail\" label=\"注入错误（验证错误分支）\" \u002F>\n      \u003CUButton size=\"sm\" variant=\"outline\" icon=\"i-lucide-send\" @click=\"active.execute()\">\n        触发请求\n      \u003C\u002FUButton>\n    \u003C\u002Fdiv>\n    \u003Cp class=\"text-xs text-muted\">\n      {{ hints[mode] }}\n    \u003C\u002Fp>\n    \u003Cpre class=\"text-xs p-3 rounded bg-elevated overflow-auto\">{{ display }}\u003C\u002Fpre>\n  \u003C\u002Fdiv>\n\u003C\u002Ftemplate>\n\n",[8542],{"type":208,"tag":235,"props":8543,"children":8544},{"__ignoreMap":259},[8545,8576,8599,8650,8657,8664,8696,8757,8764,8783,8820,8866,8887,8904,8920,8947,8955,9002,9022,9038,9053,9061,9092,9122,9129,9136,9143,9150,9181,9188,9235,9255,9275,9295,9315,9331,9338,9345,9377,9390,9403,9418,9425,9440,9467,9495,9547,9634,9642,9657,9672,9699,9706,9721,9756,9771],{"type":208,"tag":216,"props":8546,"children":8547},{"class":264,"line":265},[8548,8552,8556,8560,8564,8568,8572],{"type":208,"tag":216,"props":8549,"children":8550},{"style":3030},[8551],{"type":213,"value":323},{"type":208,"tag":216,"props":8553,"children":8554},{"style":3035},[8555],{"type":213,"value":1257},{"type":208,"tag":216,"props":8557,"children":8558},{"style":3040},[8559],{"type":213,"value":1260},{"type":208,"tag":216,"props":8561,"children":8562},{"style":3040},[8563],{"type":213,"value":1263},{"type":208,"tag":216,"props":8565,"children":8566},{"style":3030},[8567],{"type":213,"value":282},{"type":208,"tag":216,"props":8569,"children":8570},{"style":3053},[8571],{"type":213,"value":1268},{"type":208,"tag":216,"props":8573,"children":8574},{"style":3030},[8575],{"type":213,"value":1271},{"type":208,"tag":216,"props":8577,"children":8578},{"class":264,"line":292},[8579,8583,8587,8591,8595],{"type":208,"tag":216,"props":8580,"children":8581},{"style":3065},[8582],{"type":213,"value":269},{"type":208,"tag":216,"props":8584,"children":8585},{"style":3070},[8586],{"type":213,"value":3073},{"type":208,"tag":216,"props":8588,"children":8589},{"style":3065},[8590],{"type":213,"value":314},{"type":208,"tag":216,"props":8592,"children":8593},{"style":3040},[8594],{"type":213,"value":3082},{"type":208,"tag":216,"props":8596,"children":8597},{"style":3030},[8598],{"type":213,"value":3087},{"type":208,"tag":216,"props":8600,"children":8601},{"class":264,"line":299},[8602,8606,8610,8614,8618,8623,8627,8632,8636,8641,8645],{"type":208,"tag":216,"props":8603,"children":8604},{"style":3093},[8605],{"type":213,"value":7768},{"type":208,"tag":216,"props":8607,"children":8608},{"style":3065},[8609],{"type":213,"value":1316},{"type":208,"tag":216,"props":8611,"children":8612},{"style":3053},[8613],{"type":213,"value":3104},{"type":208,"tag":216,"props":8615,"children":8616},{"style":3065},[8617],{"type":213,"value":2821},{"type":208,"tag":216,"props":8619,"children":8620},{"style":3053},[8621],{"type":213,"value":8622}," 'silent'",{"type":208,"tag":216,"props":8624,"children":8625},{"style":3065},[8626],{"type":213,"value":2821},{"type":208,"tag":216,"props":8628,"children":8629},{"style":3053},[8630],{"type":213,"value":8631}," 'message'",{"type":208,"tag":216,"props":8633,"children":8634},{"style":3065},[8635],{"type":213,"value":2821},{"type":208,"tag":216,"props":8637,"children":8638},{"style":3053},[8639],{"type":213,"value":8640}," 'error-only'",{"type":208,"tag":216,"props":8642,"children":8643},{"style":3065},[8644],{"type":213,"value":2821},{"type":208,"tag":216,"props":8646,"children":8647},{"style":3053},[8648],{"type":213,"value":8649}," 'custom'\n",{"type":208,"tag":216,"props":8651,"children":8652},{"class":264,"line":306},[8653],{"type":208,"tag":216,"props":8654,"children":8655},{"style":3030},[8656],{"type":213,"value":3121},{"type":208,"tag":216,"props":8658,"children":8659},{"class":264,"line":339},[8660],{"type":208,"tag":216,"props":8661,"children":8662},{"emptyLinePlaceholder":295},[8663],{"type":213,"value":296},{"type":208,"tag":216,"props":8665,"children":8666},{"class":264,"line":344},[8667,8671,8676,8680,8684,8688,8692],{"type":208,"tag":216,"props":8668,"children":8669},{"style":3065},[8670],{"type":213,"value":269},{"type":208,"tag":216,"props":8672,"children":8673},{"style":3070},[8674],{"type":213,"value":8675}," fail",{"type":208,"tag":216,"props":8677,"children":8678},{"style":3065},[8679],{"type":213,"value":314},{"type":208,"tag":216,"props":8681,"children":8682},{"style":3040},[8683],{"type":213,"value":3212},{"type":208,"tag":216,"props":8685,"children":8686},{"style":3030},[8687],{"type":213,"value":498},{"type":208,"tag":216,"props":8689,"children":8690},{"style":3070},[8691],{"type":213,"value":1024},{"type":208,"tag":216,"props":8693,"children":8694},{"style":3030},[8695],{"type":213,"value":336},{"type":208,"tag":216,"props":8697,"children":8698},{"class":264,"line":350},[8699,8703,8708,8712,8716,8720,8725,8730,8734,8739,8743,8748,8752],{"type":208,"tag":216,"props":8700,"children":8701},{"style":3065},[8702],{"type":213,"value":269},{"type":208,"tag":216,"props":8704,"children":8705},{"style":3040},[8706],{"type":213,"value":8707}," target",{"type":208,"tag":216,"props":8709,"children":8710},{"style":3065},[8711],{"type":213,"value":314},{"type":208,"tag":216,"props":8713,"children":8714},{"style":3030},[8715],{"type":213,"value":1587},{"type":208,"tag":216,"props":8717,"children":8718},{"style":3065},[8719],{"type":213,"value":1590},{"type":208,"tag":216,"props":8721,"children":8722},{"style":3053},[8723],{"type":213,"value":8724}," `\u002Fprofile${",{"type":208,"tag":216,"props":8726,"children":8727},{"style":3030},[8728],{"type":213,"value":8729},"fail",{"type":208,"tag":216,"props":8731,"children":8732},{"style":3053},[8733],{"type":213,"value":941},{"type":208,"tag":216,"props":8735,"children":8736},{"style":3030},[8737],{"type":213,"value":8738},"value",{"type":208,"tag":216,"props":8740,"children":8741},{"style":3065},[8742],{"type":213,"value":3516},{"type":208,"tag":216,"props":8744,"children":8745},{"style":3053},[8746],{"type":213,"value":8747}," '?fail=1'",{"type":208,"tag":216,"props":8749,"children":8750},{"style":3065},[8751],{"type":213,"value":3747},{"type":208,"tag":216,"props":8753,"children":8754},{"style":3053},[8755],{"type":213,"value":8756}," ''}`\n",{"type":208,"tag":216,"props":8758,"children":8759},{"class":264,"line":376},[8760],{"type":208,"tag":216,"props":8761,"children":8762},{"emptyLinePlaceholder":295},[8763],{"type":213,"value":296},{"type":208,"tag":216,"props":8765,"children":8766},{"class":264,"line":388},[8767,8771,8775,8779],{"type":208,"tag":216,"props":8768,"children":8769},{"style":3065},[8770],{"type":213,"value":269},{"type":208,"tag":216,"props":8772,"children":8773},{"style":3070},[8774],{"type":213,"value":7829},{"type":208,"tag":216,"props":8776,"children":8777},{"style":3065},[8778],{"type":213,"value":314},{"type":208,"tag":216,"props":8780,"children":8781},{"style":3030},[8782],{"type":213,"value":1330},{"type":208,"tag":216,"props":8784,"children":8785},{"class":264,"line":406},[8786,8790,8794,8798,8803,8808,8812,8816],{"type":208,"tag":216,"props":8787,"children":8788},{"style":3053},[8789],{"type":213,"value":7845},{"type":208,"tag":216,"props":8791,"children":8792},{"style":3030},[8793],{"type":213,"value":913},{"type":208,"tag":216,"props":8795,"children":8796},{"style":3040},[8797],{"type":213,"value":163},{"type":208,"tag":216,"props":8799,"children":8800},{"style":3030},[8801],{"type":213,"value":8802},"(target, { key: ",{"type":208,"tag":216,"props":8804,"children":8805},{"style":3053},[8806],{"type":213,"value":8807},"'toast-default'",{"type":208,"tag":216,"props":8809,"children":8810},{"style":3030},[8811],{"type":213,"value":7876},{"type":208,"tag":216,"props":8813,"children":8814},{"style":3070},[8815],{"type":213,"value":1024},{"type":208,"tag":216,"props":8817,"children":8818},{"style":3030},[8819],{"type":213,"value":7885},{"type":208,"tag":216,"props":8821,"children":8822},{"class":264,"line":412},[8823,8828,8832,8836,8840,8845,8849,8853,8858,8862],{"type":208,"tag":216,"props":8824,"children":8825},{"style":3053},[8826],{"type":213,"value":8827},"  'silent'",{"type":208,"tag":216,"props":8829,"children":8830},{"style":3030},[8831],{"type":213,"value":913},{"type":208,"tag":216,"props":8833,"children":8834},{"style":3040},[8835],{"type":213,"value":163},{"type":208,"tag":216,"props":8837,"children":8838},{"style":3030},[8839],{"type":213,"value":8802},{"type":208,"tag":216,"props":8841,"children":8842},{"style":3053},[8843],{"type":213,"value":8844},"'toast-silent'",{"type":208,"tag":216,"props":8846,"children":8847},{"style":3030},[8848],{"type":213,"value":7876},{"type":208,"tag":216,"props":8850,"children":8851},{"style":3070},[8852],{"type":213,"value":1024},{"type":208,"tag":216,"props":8854,"children":8855},{"style":3030},[8856],{"type":213,"value":8857},", toast: ",{"type":208,"tag":216,"props":8859,"children":8860},{"style":3070},[8861],{"type":213,"value":1024},{"type":208,"tag":216,"props":8863,"children":8864},{"style":3030},[8865],{"type":213,"value":7885},{"type":208,"tag":216,"props":8867,"children":8868},{"class":264,"line":417},[8869,8874,8878,8882],{"type":208,"tag":216,"props":8870,"children":8871},{"style":3053},[8872],{"type":213,"value":8873},"  'message'",{"type":208,"tag":216,"props":8875,"children":8876},{"style":3030},[8877],{"type":213,"value":913},{"type":208,"tag":216,"props":8879,"children":8880},{"style":3040},[8881],{"type":213,"value":163},{"type":208,"tag":216,"props":8883,"children":8884},{"style":3030},[8885],{"type":213,"value":8886},"(target, {\n",{"type":208,"tag":216,"props":8888,"children":8889},{"class":264,"line":423},[8890,8895,8900],{"type":208,"tag":216,"props":8891,"children":8892},{"style":3030},[8893],{"type":213,"value":8894},"    key: ",{"type":208,"tag":216,"props":8896,"children":8897},{"style":3053},[8898],{"type":213,"value":8899},"'toast-message'",{"type":208,"tag":216,"props":8901,"children":8902},{"style":3030},[8903],{"type":213,"value":385},{"type":208,"tag":216,"props":8905,"children":8906},{"class":264,"line":454},[8907,8912,8916],{"type":208,"tag":216,"props":8908,"children":8909},{"style":3030},[8910],{"type":213,"value":8911},"    immediate: ",{"type":208,"tag":216,"props":8913,"children":8914},{"style":3070},[8915],{"type":213,"value":1024},{"type":208,"tag":216,"props":8917,"children":8918},{"style":3030},[8919],{"type":213,"value":385},{"type":208,"tag":216,"props":8921,"children":8922},{"class":264,"line":464},[8923,8928,8933,8938,8943],{"type":208,"tag":216,"props":8924,"children":8925},{"style":3030},[8926],{"type":213,"value":8927},"    toast: { successMessage: ",{"type":208,"tag":216,"props":8929,"children":8930},{"style":3053},[8931],{"type":213,"value":8932},"'加载成功 ✓'",{"type":208,"tag":216,"props":8934,"children":8935},{"style":3030},[8936],{"type":213,"value":8937},", errorMessage: ",{"type":208,"tag":216,"props":8939,"children":8940},{"style":3053},[8941],{"type":213,"value":8942},"'加载失败 ✗'",{"type":208,"tag":216,"props":8944,"children":8945},{"style":3030},[8946],{"type":213,"value":403},{"type":208,"tag":216,"props":8948,"children":8949},{"class":264,"line":474},[8950],{"type":208,"tag":216,"props":8951,"children":8952},{"style":3030},[8953],{"type":213,"value":8954},"  }),\n",{"type":208,"tag":216,"props":8956,"children":8957},{"class":264,"line":479},[8958,8963,8967,8971,8975,8980,8984,8988,8993,8997],{"type":208,"tag":216,"props":8959,"children":8960},{"style":3053},[8961],{"type":213,"value":8962},"  'error-only'",{"type":208,"tag":216,"props":8964,"children":8965},{"style":3030},[8966],{"type":213,"value":913},{"type":208,"tag":216,"props":8968,"children":8969},{"style":3040},[8970],{"type":213,"value":163},{"type":208,"tag":216,"props":8972,"children":8973},{"style":3030},[8974],{"type":213,"value":8802},{"type":208,"tag":216,"props":8976,"children":8977},{"style":3053},[8978],{"type":213,"value":8979},"'toast-error-only'",{"type":208,"tag":216,"props":8981,"children":8982},{"style":3030},[8983],{"type":213,"value":7876},{"type":208,"tag":216,"props":8985,"children":8986},{"style":3070},[8987],{"type":213,"value":1024},{"type":208,"tag":216,"props":8989,"children":8990},{"style":3030},[8991],{"type":213,"value":8992},", toast: { success: ",{"type":208,"tag":216,"props":8994,"children":8995},{"style":3070},[8996],{"type":213,"value":1024},{"type":208,"tag":216,"props":8998,"children":8999},{"style":3030},[9000],{"type":213,"value":9001}," } }),\n",{"type":208,"tag":216,"props":9003,"children":9004},{"class":264,"line":484},[9005,9010,9014,9018],{"type":208,"tag":216,"props":9006,"children":9007},{"style":3053},[9008],{"type":213,"value":9009},"  'custom'",{"type":208,"tag":216,"props":9011,"children":9012},{"style":3030},[9013],{"type":213,"value":913},{"type":208,"tag":216,"props":9015,"children":9016},{"style":3040},[9017],{"type":213,"value":163},{"type":208,"tag":216,"props":9019,"children":9020},{"style":3030},[9021],{"type":213,"value":8886},{"type":208,"tag":216,"props":9023,"children":9024},{"class":264,"line":490},[9025,9029,9034],{"type":208,"tag":216,"props":9026,"children":9027},{"style":3030},[9028],{"type":213,"value":8894},{"type":208,"tag":216,"props":9030,"children":9031},{"style":3053},[9032],{"type":213,"value":9033},"'toast-custom'",{"type":208,"tag":216,"props":9035,"children":9036},{"style":3030},[9037],{"type":213,"value":385},{"type":208,"tag":216,"props":9039,"children":9040},{"class":264,"line":1435},[9041,9045,9049],{"type":208,"tag":216,"props":9042,"children":9043},{"style":3030},[9044],{"type":213,"value":8911},{"type":208,"tag":216,"props":9046,"children":9047},{"style":3070},[9048],{"type":213,"value":1024},{"type":208,"tag":216,"props":9050,"children":9051},{"style":3030},[9052],{"type":213,"value":385},{"type":208,"tag":216,"props":9054,"children":9055},{"class":264,"line":1441},[9056],{"type":208,"tag":216,"props":9057,"children":9058},{"style":3030},[9059],{"type":213,"value":9060},"    toast: {\n",{"type":208,"tag":216,"props":9062,"children":9063},{"class":264,"line":1462},[9064,9069,9074,9079,9088],{"type":208,"tag":216,"props":9065,"children":9066},{"style":3030},[9067],{"type":213,"value":9068},"      success: { color: ",{"type":208,"tag":216,"props":9070,"children":9071},{"style":3053},[9072],{"type":213,"value":9073},"'secondary'",{"type":208,"tag":216,"props":9075,"children":9076},{"style":3030},[9077],{"type":213,"value":9078},", icon: ",{"type":208,"tag":216,"props":9080,"children":9081},{"style":3053},[9082,9086],{"type":208,"tag":3890,"props":9083,"children":9085},{"class":3892,"style":9084},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Fsparkles.svg?color=%23000)",[],{"type":213,"value":9087},"'i-lucide-sparkles'",{"type":208,"tag":216,"props":9089,"children":9090},{"style":3030},[9091],{"type":213,"value":2076},{"type":208,"tag":216,"props":9093,"children":9094},{"class":264,"line":1484},[9095,9100,9105,9109,9118],{"type":208,"tag":216,"props":9096,"children":9097},{"style":3030},[9098],{"type":213,"value":9099},"      error: { color: ",{"type":208,"tag":216,"props":9101,"children":9102},{"style":3053},[9103],{"type":213,"value":9104},"'warning'",{"type":208,"tag":216,"props":9106,"children":9107},{"style":3030},[9108],{"type":213,"value":9078},{"type":208,"tag":216,"props":9110,"children":9111},{"style":3053},[9112,9116],{"type":208,"tag":3890,"props":9113,"children":9115},{"class":3892,"style":9114},"--shiki-icon-url:url(https:\u002F\u002Fapi.iconify.design\u002Flucide\u002Ftriangle-alert.svg?color=%23000)",[],{"type":213,"value":9117},"'i-lucide-triangle-alert'",{"type":208,"tag":216,"props":9119,"children":9120},{"style":3030},[9121],{"type":213,"value":403},{"type":208,"tag":216,"props":9123,"children":9124},{"class":264,"line":1498},[9125],{"type":208,"tag":216,"props":9126,"children":9127},{"style":3030},[9128],{"type":213,"value":1046},{"type":208,"tag":216,"props":9130,"children":9131},{"class":264,"line":1503},[9132],{"type":208,"tag":216,"props":9133,"children":9134},{"style":3030},[9135],{"type":213,"value":1830},{"type":208,"tag":216,"props":9137,"children":9138},{"class":264,"line":3574},[9139],{"type":208,"tag":216,"props":9140,"children":9141},{"style":3030},[9142],{"type":213,"value":1428},{"type":208,"tag":216,"props":9144,"children":9145},{"class":264,"line":3582},[9146],{"type":208,"tag":216,"props":9147,"children":9148},{"emptyLinePlaceholder":295},[9149],{"type":213,"value":296},{"type":208,"tag":216,"props":9151,"children":9152},{"class":264,"line":3590},[9153,9157,9161,9165,9169,9173,9177],{"type":208,"tag":216,"props":9154,"children":9155},{"style":3065},[9156],{"type":213,"value":269},{"type":208,"tag":216,"props":9158,"children":9159},{"style":3070},[9160],{"type":213,"value":8081},{"type":208,"tag":216,"props":9162,"children":9163},{"style":3065},[9164],{"type":213,"value":314},{"type":208,"tag":216,"props":9166,"children":9167},{"style":3040},[9168],{"type":213,"value":3341},{"type":208,"tag":216,"props":9170,"children":9171},{"style":3030},[9172],{"type":213,"value":3346},{"type":208,"tag":216,"props":9174,"children":9175},{"style":3065},[9176],{"type":213,"value":1590},{"type":208,"tag":216,"props":9178,"children":9179},{"style":3030},[9180],{"type":213,"value":8102},{"type":208,"tag":216,"props":9182,"children":9183},{"class":264,"line":3598},[9184],{"type":208,"tag":216,"props":9185,"children":9186},{"emptyLinePlaceholder":295},[9187],{"type":213,"value":296},{"type":208,"tag":216,"props":9189,"children":9190},{"class":264,"line":3628},[9191,9195,9199,9203,9207,9211,9215,9219,9223,9227,9231],{"type":208,"tag":216,"props":9192,"children":9193},{"style":3065},[9194],{"type":213,"value":269},{"type":208,"tag":216,"props":9196,"children":9197},{"style":3070},[9198],{"type":213,"value":8121},{"type":208,"tag":216,"props":9200,"children":9201},{"style":3065},[9202],{"type":213,"value":1316},{"type":208,"tag":216,"props":9204,"children":9205},{"style":3040},[9206],{"type":213,"value":8130},{"type":208,"tag":216,"props":9208,"children":9209},{"style":3030},[9210],{"type":213,"value":323},{"type":208,"tag":216,"props":9212,"children":9213},{"style":3065},[9214],{"type":213,"value":8139},{"type":208,"tag":216,"props":9216,"children":9217},{"style":3030},[9218],{"type":213,"value":8144},{"type":208,"tag":216,"props":9220,"children":9221},{"style":3070},[9222],{"type":213,"value":2890},{"type":208,"tag":216,"props":9224,"children":9225},{"style":3030},[9226],{"type":213,"value":8153},{"type":208,"tag":216,"props":9228,"children":9229},{"style":3065},[9230],{"type":213,"value":282},{"type":208,"tag":216,"props":9232,"children":9233},{"style":3030},[9234],{"type":213,"value":1330},{"type":208,"tag":216,"props":9236,"children":9237},{"class":264,"line":3644},[9238,9242,9246,9251],{"type":208,"tag":216,"props":9239,"children":9240},{"style":3053},[9241],{"type":213,"value":7845},{"type":208,"tag":216,"props":9243,"children":9244},{"style":3030},[9245],{"type":213,"value":913},{"type":208,"tag":216,"props":9247,"children":9248},{"style":3053},[9249],{"type":213,"value":9250},"'未传 toast 时继承全局配置，成功 \u002F 错误均按默认样式弹出。'",{"type":208,"tag":216,"props":9252,"children":9253},{"style":3030},[9254],{"type":213,"value":385},{"type":208,"tag":216,"props":9256,"children":9257},{"class":264,"line":3652},[9258,9262,9266,9271],{"type":208,"tag":216,"props":9259,"children":9260},{"style":3053},[9261],{"type":213,"value":8827},{"type":208,"tag":216,"props":9263,"children":9264},{"style":3030},[9265],{"type":213,"value":913},{"type":208,"tag":216,"props":9267,"children":9268},{"style":3053},[9269],{"type":213,"value":9270},"'toast: false 关闭所有单次提示。'",{"type":208,"tag":216,"props":9272,"children":9273},{"style":3030},[9274],{"type":213,"value":385},{"type":208,"tag":216,"props":9276,"children":9277},{"class":264,"line":3669},[9278,9282,9286,9291],{"type":208,"tag":216,"props":9279,"children":9280},{"style":3053},[9281],{"type":213,"value":8873},{"type":208,"tag":216,"props":9283,"children":9284},{"style":3030},[9285],{"type":213,"value":913},{"type":208,"tag":216,"props":9287,"children":9288},{"style":3053},[9289],{"type":213,"value":9290},"'successMessage \u002F errorMessage 替换默认文案。'",{"type":208,"tag":216,"props":9292,"children":9293},{"style":3030},[9294],{"type":213,"value":385},{"type":208,"tag":216,"props":9296,"children":9297},{"class":264,"line":3701},[9298,9302,9306,9311],{"type":208,"tag":216,"props":9299,"children":9300},{"style":3053},[9301],{"type":213,"value":8962},{"type":208,"tag":216,"props":9303,"children":9304},{"style":3030},[9305],{"type":213,"value":913},{"type":208,"tag":216,"props":9307,"children":9308},{"style":3053},[9309],{"type":213,"value":9310},"'{ success: false } 关闭成功提示但保留错误提示。'",{"type":208,"tag":216,"props":9312,"children":9313},{"style":3030},[9314],{"type":213,"value":385},{"type":208,"tag":216,"props":9316,"children":9317},{"class":264,"line":3731},[9318,9322,9326],{"type":208,"tag":216,"props":9319,"children":9320},{"style":3053},[9321],{"type":213,"value":9009},{"type":208,"tag":216,"props":9323,"children":9324},{"style":3030},[9325],{"type":213,"value":913},{"type":208,"tag":216,"props":9327,"children":9328},{"style":3053},[9329],{"type":213,"value":9330},"'为成功 \u002F 错误分别覆盖 color、icon 等 ToastProps。'\n",{"type":208,"tag":216,"props":9332,"children":9333},{"class":264,"line":3813},[9334],{"type":208,"tag":216,"props":9335,"children":9336},{"style":3030},[9337],{"type":213,"value":1428},{"type":208,"tag":216,"props":9339,"children":9340},{"class":264,"line":3822},[9341],{"type":208,"tag":216,"props":9342,"children":9343},{"emptyLinePlaceholder":295},[9344],{"type":213,"value":296},{"type":208,"tag":216,"props":9346,"children":9347},{"class":264,"line":3839},[9348,9352,9356,9360,9364,9368,9372],{"type":208,"tag":216,"props":9349,"children":9350},{"style":3065},[9351],{"type":213,"value":269},{"type":208,"tag":216,"props":9353,"children":9354},{"style":3070},[9355],{"type":213,"value":6410},{"type":208,"tag":216,"props":9357,"children":9358},{"style":3065},[9359],{"type":213,"value":314},{"type":208,"tag":216,"props":9361,"children":9362},{"style":3040},[9363],{"type":213,"value":3341},{"type":208,"tag":216,"props":9365,"children":9366},{"style":3030},[9367],{"type":213,"value":3346},{"type":208,"tag":216,"props":9369,"children":9370},{"style":3065},[9371],{"type":213,"value":1590},{"type":208,"tag":216,"props":9373,"children":9374},{"style":3030},[9375],{"type":213,"value":9376}," active.value.error.value\n",{"type":208,"tag":216,"props":9378,"children":9379},{"class":264,"line":3956},[9380,9385],{"type":208,"tag":216,"props":9381,"children":9382},{"style":3065},[9383],{"type":213,"value":9384},"  ?",{"type":208,"tag":216,"props":9386,"children":9387},{"style":3030},[9388],{"type":213,"value":9389}," { error: active.value.error.value.message }\n",{"type":208,"tag":216,"props":9391,"children":9392},{"class":264,"line":3965},[9393,9398],{"type":208,"tag":216,"props":9394,"children":9395},{"style":3065},[9396],{"type":213,"value":9397},"  :",{"type":208,"tag":216,"props":9399,"children":9400},{"style":3030},[9401],{"type":213,"value":9402}," active.value.data.value)\n",{"type":208,"tag":216,"props":9404,"children":9405},{"class":264,"line":3981},[9406,9410,9414],{"type":208,"tag":216,"props":9407,"children":9408},{"style":3030},[9409],{"type":213,"value":1506},{"type":208,"tag":216,"props":9411,"children":9412},{"style":3035},[9413],{"type":213,"value":1257},{"type":208,"tag":216,"props":9415,"children":9416},{"style":3030},[9417],{"type":213,"value":1271},{"type":208,"tag":216,"props":9419,"children":9420},{"class":264,"line":3998},[9421],{"type":208,"tag":216,"props":9422,"children":9423},{"emptyLinePlaceholder":295},[9424],{"type":213,"value":296},{"type":208,"tag":216,"props":9426,"children":9427},{"class":264,"line":4027},[9428,9432,9436],{"type":208,"tag":216,"props":9429,"children":9430},{"style":3030},[9431],{"type":213,"value":323},{"type":208,"tag":216,"props":9433,"children":9434},{"style":3035},[9435],{"type":213,"value":3662},{"type":208,"tag":216,"props":9437,"children":9438},{"style":3030},[9439],{"type":213,"value":1271},{"type":208,"tag":216,"props":9441,"children":9442},{"class":264,"line":4036},[9443,9447,9451,9455,9459,9463],{"type":208,"tag":216,"props":9444,"children":9445},{"style":3030},[9446],{"type":213,"value":3675},{"type":208,"tag":216,"props":9448,"children":9449},{"style":3035},[9450],{"type":213,"value":3680},{"type":208,"tag":216,"props":9452,"children":9453},{"style":3040},[9454],{"type":213,"value":3685},{"type":208,"tag":216,"props":9456,"children":9457},{"style":3030},[9458],{"type":213,"value":282},{"type":208,"tag":216,"props":9460,"children":9461},{"style":3053},[9462],{"type":213,"value":3694},{"type":208,"tag":216,"props":9464,"children":9465},{"style":3030},[9466],{"type":213,"value":1271},{"type":208,"tag":216,"props":9468,"children":9469},{"class":264,"line":4052},[9470,9474,9478,9482,9486,9491],{"type":208,"tag":216,"props":9471,"children":9472},{"style":3030},[9473],{"type":213,"value":3707},{"type":208,"tag":216,"props":9475,"children":9476},{"style":3035},[9477],{"type":213,"value":3680},{"type":208,"tag":216,"props":9479,"children":9480},{"style":3040},[9481],{"type":213,"value":3685},{"type":208,"tag":216,"props":9483,"children":9484},{"style":3030},[9485],{"type":213,"value":282},{"type":208,"tag":216,"props":9487,"children":9488},{"style":3053},[9489],{"type":213,"value":9490},"\"flex items-center gap-3 flex-wrap\"",{"type":208,"tag":216,"props":9492,"children":9493},{"style":3030},[9494],{"type":213,"value":1271},{"type":208,"tag":216,"props":9496,"children":9497},{"class":264,"line":4090},[9498,9502,9507,9512,9516,9520,9524,9528,9533,9537,9542],{"type":208,"tag":216,"props":9499,"children":9500},{"style":3030},[9501],{"type":213,"value":3737},{"type":208,"tag":216,"props":9503,"children":9504},{"style":3035},[9505],{"type":213,"value":9506},"USwitch",{"type":208,"tag":216,"props":9508,"children":9509},{"style":3040},[9510],{"type":213,"value":9511}," v-model",{"type":208,"tag":216,"props":9513,"children":9514},{"style":3030},[9515],{"type":213,"value":282},{"type":208,"tag":216,"props":9517,"children":9518},{"style":3053},[9519],{"type":213,"value":3760},{"type":208,"tag":216,"props":9521,"children":9522},{"style":3030},[9523],{"type":213,"value":8729},{"type":208,"tag":216,"props":9525,"children":9526},{"style":3053},[9527],{"type":213,"value":3760},{"type":208,"tag":216,"props":9529,"children":9530},{"style":3040},[9531],{"type":213,"value":9532}," label",{"type":208,"tag":216,"props":9534,"children":9535},{"style":3030},[9536],{"type":213,"value":282},{"type":208,"tag":216,"props":9538,"children":9539},{"style":3053},[9540],{"type":213,"value":9541},"\"注入错误（验证错误分支）\"",{"type":208,"tag":216,"props":9543,"children":9544},{"style":3030},[9545],{"type":213,"value":9546}," \u002F>\n",{"type":208,"tag":216,"props":9548,"children":9549},{"class":264,"line":4107},[9550,9554,9558,9562,9566,9570,9574,9578,9582,9586,9590,9597,9601,9605,9609,9613,9618,9622,9626,9630],{"type":208,"tag":216,"props":9551,"children":9552},{"style":3030},[9553],{"type":213,"value":3737},{"type":208,"tag":216,"props":9555,"children":9556},{"style":3035},[9557],{"type":213,"value":3849},{"type":208,"tag":216,"props":9559,"children":9560},{"style":3040},[9561],{"type":213,"value":3854},{"type":208,"tag":216,"props":9563,"children":9564},{"style":3030},[9565],{"type":213,"value":282},{"type":208,"tag":216,"props":9567,"children":9568},{"style":3053},[9569],{"type":213,"value":3863},{"type":208,"tag":216,"props":9571,"children":9572},{"style":3040},[9573],{"type":213,"value":3797},{"type":208,"tag":216,"props":9575,"children":9576},{"style":3030},[9577],{"type":213,"value":282},{"type":208,"tag":216,"props":9579,"children":9580},{"style":3053},[9581],{"type":213,"value":3876},{"type":208,"tag":216,"props":9583,"children":9584},{"style":3040},[9585],{"type":213,"value":3881},{"type":208,"tag":216,"props":9587,"children":9588},{"style":3030},[9589],{"type":213,"value":282},{"type":208,"tag":216,"props":9591,"children":9592},{"style":3053},[9593,9596],{"type":208,"tag":3890,"props":9594,"children":9595},{"class":3892,"style":7461},[],{"type":213,"value":7464},{"type":208,"tag":216,"props":9598,"children":9599},{"style":3030},[9600],{"type":213,"value":3927},{"type":208,"tag":216,"props":9602,"children":9603},{"style":3040},[9604],{"type":213,"value":3932},{"type":208,"tag":216,"props":9606,"children":9607},{"style":3030},[9608],{"type":213,"value":282},{"type":208,"tag":216,"props":9610,"children":9611},{"style":3053},[9612],{"type":213,"value":3760},{"type":208,"tag":216,"props":9614,"children":9615},{"style":3030},[9616],{"type":213,"value":9617},"active.",{"type":208,"tag":216,"props":9619,"children":9620},{"style":3040},[9621],{"type":213,"value":6632},{"type":208,"tag":216,"props":9623,"children":9624},{"style":3030},[9625],{"type":213,"value":6637},{"type":208,"tag":216,"props":9627,"children":9628},{"style":3053},[9629],{"type":213,"value":3760},{"type":208,"tag":216,"props":9631,"children":9632},{"style":3030},[9633],{"type":213,"value":1271},{"type":208,"tag":216,"props":9635,"children":9636},{"class":264,"line":5993},[9637],{"type":208,"tag":216,"props":9638,"children":9639},{"style":3030},[9640],{"type":213,"value":9641},"        触发请求\n",{"type":208,"tag":216,"props":9643,"children":9644},{"class":264,"line":6002},[9645,9649,9653],{"type":208,"tag":216,"props":9646,"children":9647},{"style":3030},[9648],{"type":213,"value":3828},{"type":208,"tag":216,"props":9650,"children":9651},{"style":3035},[9652],{"type":213,"value":3849},{"type":208,"tag":216,"props":9654,"children":9655},{"style":3030},[9656],{"type":213,"value":1271},{"type":208,"tag":216,"props":9658,"children":9659},{"class":264,"line":6018},[9660,9664,9668],{"type":208,"tag":216,"props":9661,"children":9662},{"style":3030},[9663],{"type":213,"value":3987},{"type":208,"tag":216,"props":9665,"children":9666},{"style":3035},[9667],{"type":213,"value":3680},{"type":208,"tag":216,"props":9669,"children":9670},{"style":3030},[9671],{"type":213,"value":1271},{"type":208,"tag":216,"props":9673,"children":9674},{"class":264,"line":6036},[9675,9679,9683,9687,9691,9695],{"type":208,"tag":216,"props":9676,"children":9677},{"style":3030},[9678],{"type":213,"value":3707},{"type":208,"tag":216,"props":9680,"children":9681},{"style":3035},[9682],{"type":213,"value":209},{"type":208,"tag":216,"props":9684,"children":9685},{"style":3040},[9686],{"type":213,"value":3685},{"type":208,"tag":216,"props":9688,"children":9689},{"style":3030},[9690],{"type":213,"value":282},{"type":208,"tag":216,"props":9692,"children":9693},{"style":3053},[9694],{"type":213,"value":4020},{"type":208,"tag":216,"props":9696,"children":9697},{"style":3030},[9698],{"type":213,"value":1271},{"type":208,"tag":216,"props":9700,"children":9701},{"class":264,"line":6054},[9702],{"type":208,"tag":216,"props":9703,"children":9704},{"style":3030},[9705],{"type":213,"value":8446},{"type":208,"tag":216,"props":9707,"children":9708},{"class":264,"line":6083},[9709,9713,9717],{"type":208,"tag":216,"props":9710,"children":9711},{"style":3030},[9712],{"type":213,"value":3987},{"type":208,"tag":216,"props":9714,"children":9715},{"style":3035},[9716],{"type":213,"value":209},{"type":208,"tag":216,"props":9718,"children":9719},{"style":3030},[9720],{"type":213,"value":1271},{"type":208,"tag":216,"props":9722,"children":9723},{"class":264,"line":6104},[9724,9728,9732,9736,9740,9744,9748,9752],{"type":208,"tag":216,"props":9725,"children":9726},{"style":3030},[9727],{"type":213,"value":3707},{"type":208,"tag":216,"props":9729,"children":9730},{"style":3035},[9731],{"type":213,"value":254},{"type":208,"tag":216,"props":9733,"children":9734},{"style":3040},[9735],{"type":213,"value":3685},{"type":208,"tag":216,"props":9737,"children":9738},{"style":3030},[9739],{"type":213,"value":282},{"type":208,"tag":216,"props":9741,"children":9742},{"style":3053},[9743],{"type":213,"value":4074},{"type":208,"tag":216,"props":9745,"children":9746},{"style":3030},[9747],{"type":213,"value":6746},{"type":208,"tag":216,"props":9749,"children":9750},{"style":3035},[9751],{"type":213,"value":254},{"type":208,"tag":216,"props":9753,"children":9754},{"style":3030},[9755],{"type":213,"value":1271},{"type":208,"tag":216,"props":9757,"children":9758},{"class":264,"line":6133},[9759,9763,9767],{"type":208,"tag":216,"props":9760,"children":9761},{"style":3030},[9762],{"type":213,"value":4096},{"type":208,"tag":216,"props":9764,"children":9765},{"style":3035},[9766],{"type":213,"value":3680},{"type":208,"tag":216,"props":9768,"children":9769},{"style":3030},[9770],{"type":213,"value":1271},{"type":208,"tag":216,"props":9772,"children":9773},{"class":264,"line":6141},[9774,9778,9782],{"type":208,"tag":216,"props":9775,"children":9776},{"style":3030},[9777],{"type":213,"value":1506},{"type":208,"tag":216,"props":9779,"children":9780},{"style":3035},[9781],{"type":213,"value":3662},{"type":208,"tag":216,"props":9783,"children":9784},{"style":3030},[9785],{"type":213,"value":1271},{"type":208,"tag":2933,"props":9787,"children":9788},{},[9789],{"type":213,"value":4125},{"title":259,"searchDepth":292,"depth":292,"links":9791},[],1795419759292]