[{"data":1,"prerenderedAt":1510},["ShallowReactive",2],{"toc-zh-\u002Fadvanced\u002Ffull-config":3,"page-zh-\u002Fadvanced\u002Ffull-config":835},{"id":4,"title":5,"body":6,"description":827,"extension":828,"meta":829,"navigation":830,"path":831,"seo":832,"stem":833,"__hash__":834},"content_zh\u002Fadvanced\u002Ffull-config.md","配置全解",{"type":7,"value":8,"toc":803},"minimark",[9,22,26,64,68,97,101,130,134,162,166,194,198,244,248,286,299,303,331,335,363,367,394,398,426,430,458,462,491,495,527,531,559,563,590,594,622,625,654,657,724,732,736,765,771,775],[10,11,12,13,17,18,21],"p",{},"本章列出 ",[14,15,16],"code",{},"nuxt.config.ts"," 中 ",[14,19,20],{},"dict"," 配置的所有字段。",[23,24,25],"h2",{"id":25},"enable",[27,28,29,45],"table",{},[30,31,32],"thead",{},[33,34,35,39,42],"tr",{},[36,37,38],"th",{},"类型",[36,40,41],{},"默认值",[36,43,44],{},"说明",[46,47,48],"tbody",{},[33,49,50,56,61],{},[51,52,53],"td",{},[14,54,55],{},"boolean",[51,57,58],{},[14,59,60],{},"true",[51,62,63],{},"是否启用字典模块",[23,65,67],{"id":66},"loglevel","logLevel",[27,69,70,80],{},[30,71,72],{},[33,73,74,76,78],{},[36,75,38],{},[36,77,41],{},[36,79,44],{},[46,81,82],{},[33,83,84,89,94],{},[51,85,86],{},[14,87,88],{},"number",[51,90,91],{},[14,92,93],{},"3",[51,95,96],{},"日志级别：0=静默, 1=错误, 2=警告, 3=信息, 4=调试, 5=详细",[23,98,100],{"id":99},"apibaseurl","api.baseURL",[27,102,103,113],{},[30,104,105],{},[33,106,107,109,111],{},[36,108,38],{},[36,110,41],{},[36,112,44],{},[46,114,115],{},[33,116,117,122,127],{},[51,118,119],{},[14,120,121],{},"string",[51,123,124],{},[14,125,126],{},"'\u002Fapi'",[51,128,129],{},"API 基础地址。支持绝对 URL 或相对路径",[23,131,133],{"id":132},"apidictendpoint","api.dictEndpoint",[27,135,136,146],{},[30,137,138],{},[33,139,140,142,144],{},[36,141,38],{},[36,143,41],{},[36,145,44],{},[46,147,148],{},[33,149,150,154,159],{},[51,151,152],{},[14,153,121],{},[51,155,156],{},[14,157,158],{},"'\u002Fdict\u002Flist'",[51,160,161],{},"字典列表接口路径",[23,163,165],{"id":164},"apiversionendpoint","api.versionEndpoint",[27,167,168,178],{},[30,169,170],{},[33,171,172,174,176],{},[36,173,38],{},[36,175,41],{},[36,177,44],{},[46,179,180],{},[33,181,182,186,191],{},[51,183,184],{},[14,185,121],{},[51,187,188],{},[14,189,190],{},"'\u002Fdict\u002Fversion'",[51,192,193],{},"版本号接口路径",[23,195,197],{"id":196},"apiadapter","api.adapter",[27,199,200,210],{},[30,201,202],{},[33,203,204,206,208],{},[36,205,38],{},[36,207,41],{},[36,209,44],{},[46,211,212],{},[33,213,214,219,224],{},[51,215,216],{},[14,217,218],{},"string | undefined",[51,220,221],{},[14,222,223],{},"undefined",[51,225,226,227,230,231,234,235,238,239],{},"自定义适配器的文件路径（如 ",[14,228,229],{},"'~\u002Fdict\u002Fdict-adapter.ts'","）。若文件存在于约定路径 ",[14,232,233],{},"~\u002Fdict\u002Fdict-adapter.ts","，模块会自动发现并注册，无需手动配置。命名仓库使用 ",[14,236,237],{},"stores.xxx.adapter","，详见 ",[240,241,243],"a",{"href":242},"\u002Fadvanced\u002Fcustom-adapter","自定义适配器",[23,245,247],{"id":246},"apilazy","api.lazy",[27,249,250,260],{},[30,251,252],{},[33,253,254,256,258],{},[36,255,38],{},[36,257,41],{},[36,259,44],{},[46,261,262],{},[33,263,264,268,273],{},[51,265,266],{},[14,267,55],{},[51,269,270],{},[14,271,272],{},"false",[51,274,275,276,278,279,281,282,285],{},"是否惰性检查版本号。",[14,277,272],{}," 时页面加载立即检查，",[14,280,60],{}," 时延迟到首次 ",[14,283,284],{},"getDict()"," 调用时检查",[10,287,288,289,291,292,294,295,298],{},"仓库少时建议 ",[14,290,272],{},"（立即检查），仓库多且不一定全用到时设为 ",[14,293,60],{}," 避免不必要的版本请求。\n各仓库可通过 ",[14,296,297],{},"stores[name].lazy"," 单独覆盖此值。",[23,300,302],{"id":301},"cachememorymax","cache.memoryMax",[27,304,305,315],{},[30,306,307],{},[33,308,309,311,313],{},[36,310,38],{},[36,312,41],{},[36,314,44],{},[46,316,317],{},[33,318,319,323,328],{},[51,320,321],{},[14,322,88],{},[51,324,325],{},[14,326,327],{},"200",[51,329,330],{},"内存缓存最大条目数",[23,332,334],{"id":333},"cachettl","cache.ttl",[27,336,337,347],{},[30,338,339],{},[33,340,341,343,345],{},[36,342,38],{},[36,344,41],{},[36,346,44],{},[46,348,349],{},[33,350,351,355,360],{},[51,352,353],{},[14,354,88],{},[51,356,357],{},[14,358,359],{},"0",[51,361,362],{},"内存缓存 TTL（毫秒），0 = 永不过期",[23,364,366],{"id":365},"cacheindexeddbenabled","cache.indexedDB.enabled",[27,368,369,379],{},[30,370,371],{},[33,372,373,375,377],{},[36,374,38],{},[36,376,41],{},[36,378,44],{},[46,380,381],{},[33,382,383,387,391],{},[51,384,385],{},[14,386,55],{},[51,388,389],{},[14,390,60],{},[51,392,393],{},"是否启用 IndexedDB",[23,395,397],{"id":396},"cacheindexeddbdbname","cache.indexedDB.dbName",[27,399,400,410],{},[30,401,402],{},[33,403,404,406,408],{},[36,405,38],{},[36,407,41],{},[36,409,44],{},[46,411,412],{},[33,413,414,418,423],{},[51,415,416],{},[14,417,121],{},[51,419,420],{},[14,421,422],{},"'nuxt-dict'",[51,424,425],{},"IndexedDB 数据库名称",[23,427,429],{"id":428},"localedefault","locale.default",[27,431,432,442],{},[30,433,434],{},[33,435,436,438,440],{},[36,437,38],{},[36,439,41],{},[36,441,44],{},[46,443,444],{},[33,445,446,450,455],{},[51,447,448],{},[14,449,121],{},[51,451,452],{},[14,453,454],{},"'zh-CN'",[51,456,457],{},"兜底语言",[23,459,461],{"id":460},"localesource","locale.source",[27,463,464,474],{},[30,465,466],{},[33,467,468,470,472],{},[36,469,38],{},[36,471,41],{},[36,473,44],{},[46,475,476],{},[33,477,478,483,488],{},[51,479,480],{},[14,481,482],{},"'cookie' | 'header' | 'query'",[51,484,485],{},[14,486,487],{},"'cookie'",[51,489,490],{},"语言检测来源",[23,492,494],{"id":493},"localecookiekey","locale.cookieKey",[27,496,497,507],{},[30,498,499],{},[33,500,501,503,505],{},[36,502,38],{},[36,504,41],{},[36,506,44],{},[46,508,509],{},[33,510,511,515,520],{},[51,512,513],{},[14,514,121],{},[51,516,517],{},[14,518,519],{},"'i18n_redirected'",[51,521,522,523],{},"cookie 名称。默认值与 @nuxtjs\u002Fi18n 共享同一 cookie，实现语言自动同步。详见 ",[240,524,526],{"href":525},"\u002Fintegration\u002Fi18n","i18n 国际化",[23,528,530],{"id":529},"localequerykey","locale.queryKey",[27,532,533,543],{},[30,534,535],{},[33,536,537,539,541],{},[36,538,38],{},[36,540,41],{},[36,542,44],{},[46,544,545],{},[33,546,547,551,556],{},[51,548,549],{},[14,550,121],{},[51,552,553],{},[14,554,555],{},"'lang'",[51,557,558],{},"URL 查询参数名",[23,560,562],{"id":561},"localeparamkey","locale.paramKey",[27,564,565,575],{},[30,566,567],{},[33,568,569,571,573],{},[36,570,38],{},[36,572,41],{},[36,574,44],{},[46,576,577],{},[33,578,579,583,587],{},[51,580,581],{},[14,582,121],{},[51,584,585],{},[14,586,555],{},[51,588,589],{},"发给 API 时语言参数的查询参数名",[23,591,593],{"id":592},"localeapiheaderkey","locale.apiHeaderKey",[27,595,596,606],{},[30,597,598],{},[33,599,600,602,604],{},[36,601,38],{},[36,603,41],{},[36,605,44],{},[46,607,608],{},[33,609,610,614,619],{},[51,611,612],{},[14,613,121],{},[51,615,616],{},[14,617,618],{},"'X-Locale'",[51,620,621],{},"发给 API 时语言的请求头名",[23,623,624],{"id":624},"stores",[27,626,627,637],{},[30,628,629],{},[33,630,631,633,635],{},[36,632,38],{},[36,634,41],{},[36,636,44],{},[46,638,639],{},[33,640,641,646,651],{},[51,642,643],{},[14,644,645],{},"Record\u003Cstring, { baseURL?, dictEndpoint?, versionEndpoint?, adapter?, lazy? }>",[51,647,648],{},[14,649,650],{},"{}",[51,652,653],{},"多仓库 API 配置。每个仓库可配置独立的端点或自定义适配器",[10,655,656],{},"每个仓库的可配字段：",[658,659,660,672,682,692,707],"ul",{},[661,662,663,669,670],"li",{},[664,665,666],"strong",{},[14,667,668],{},"baseURL","：API 基础地址，未配继承全局 ",[14,671,100],{},[661,673,674,679,680],{},[664,675,676],{},[14,677,678],{},"dictEndpoint","：字典列表接口路径，未配继承全局 ",[14,681,133],{},[661,683,684,689,690],{},[664,685,686],{},[14,687,688],{},"versionEndpoint","：版本号接口路径，未配继承全局 ",[14,691,165],{},[661,693,694,699,700,702,703,706],{},[664,695,696],{},[14,697,698],{},"adapter","：该仓库的自定义适配器文件路径（",[14,701,121],{},"，",[664,704,705],{},"不继承","，未配则自动创建 REST 适配器）",[661,708,709,714,715,717,718,720,721,723],{},[664,710,711],{},[14,712,713],{},"lazy","：是否惰性检查版本号（",[14,716,55],{},"，未配继承全局 ",[14,719,247],{},"，默认 ",[14,722,272],{},"）",[10,725,726,727,731],{},"详见 ",[240,728,730],{"href":729},"\u002Fadvanced\u002Fmulti-store","多仓库","。",[23,733,735],{"id":734},"ssrprefetch","ssr.prefetch",[27,737,738,748],{},[30,739,740],{},[33,741,742,744,746],{},[36,743,38],{},[36,745,41],{},[36,747,44],{},[46,749,750],{},[33,751,752,757,762],{},[51,753,754],{},[14,755,756],{},"string[]",[51,758,759],{},[14,760,761],{},"[]",[51,763,764],{},"服务端预取的字典类型列表",[10,766,726,767,731],{},[240,768,770],{"href":769},"\u002Fadvanced\u002Fssr-prefetch","SSR 预取",[23,772,774],{"id":773},"versionstoragekey","version.storageKey",[27,776,777,787],{},[30,778,779],{},[33,780,781,783,785],{},[36,782,38],{},[36,784,41],{},[36,786,44],{},[46,788,789],{},[33,790,791,795,800],{},[51,792,793],{},[14,794,121],{},[51,796,797],{},[14,798,799],{},"'__NUXT_DICT_VERSION__'",[51,801,802],{},"localStorage 版本号 key",{"title":804,"searchDepth":805,"depth":805,"links":806},"",2,[807,808,809,810,811,812,813,814,815,816,817,818,819,820,821,822,823,824,825,826],{"id":25,"depth":805,"text":25},{"id":66,"depth":805,"text":67},{"id":99,"depth":805,"text":100},{"id":132,"depth":805,"text":133},{"id":164,"depth":805,"text":165},{"id":196,"depth":805,"text":197},{"id":246,"depth":805,"text":247},{"id":301,"depth":805,"text":302},{"id":333,"depth":805,"text":334},{"id":365,"depth":805,"text":366},{"id":396,"depth":805,"text":397},{"id":428,"depth":805,"text":429},{"id":460,"depth":805,"text":461},{"id":493,"depth":805,"text":494},{"id":529,"depth":805,"text":530},{"id":561,"depth":805,"text":562},{"id":592,"depth":805,"text":593},{"id":624,"depth":805,"text":624},{"id":734,"depth":805,"text":735},{"id":773,"depth":805,"text":774},"nuxt.config.ts 中 dict 配置项的完整参考，含每个字段的类型、默认值和说明。","md",{},true,"\u002Fadvanced\u002Ffull-config",{"title":5,"description":827},"advanced\u002Ffull-config","jlTd5VseWcKaijI7BjpubXxKSc3zhWS7phpcvzGoc60",{"id":4,"title":5,"body":836,"description":827,"extension":828,"meta":1508,"navigation":830,"path":831,"seo":1509,"stem":833,"__hash__":834},{"type":7,"value":837,"toc":1486},[838,844,846,872,874,900,902,928,930,956,958,984,986,1020,1022,1054,1062,1064,1090,1092,1118,1120,1146,1148,1174,1176,1202,1204,1230,1232,1260,1262,1288,1290,1316,1318,1344,1346,1372,1374,1422,1426,1428,1454,1458,1460],[10,839,12,840,17,842,21],{},[14,841,16],{},[14,843,20],{},[23,845,25],{"id":25},[27,847,848,858],{},[30,849,850],{},[33,851,852,854,856],{},[36,853,38],{},[36,855,41],{},[36,857,44],{},[46,859,860],{},[33,861,862,866,870],{},[51,863,864],{},[14,865,55],{},[51,867,868],{},[14,869,60],{},[51,871,63],{},[23,873,67],{"id":66},[27,875,876,886],{},[30,877,878],{},[33,879,880,882,884],{},[36,881,38],{},[36,883,41],{},[36,885,44],{},[46,887,888],{},[33,889,890,894,898],{},[51,891,892],{},[14,893,88],{},[51,895,896],{},[14,897,93],{},[51,899,96],{},[23,901,100],{"id":99},[27,903,904,914],{},[30,905,906],{},[33,907,908,910,912],{},[36,909,38],{},[36,911,41],{},[36,913,44],{},[46,915,916],{},[33,917,918,922,926],{},[51,919,920],{},[14,921,121],{},[51,923,924],{},[14,925,126],{},[51,927,129],{},[23,929,133],{"id":132},[27,931,932,942],{},[30,933,934],{},[33,935,936,938,940],{},[36,937,38],{},[36,939,41],{},[36,941,44],{},[46,943,944],{},[33,945,946,950,954],{},[51,947,948],{},[14,949,121],{},[51,951,952],{},[14,953,158],{},[51,955,161],{},[23,957,165],{"id":164},[27,959,960,970],{},[30,961,962],{},[33,963,964,966,968],{},[36,965,38],{},[36,967,41],{},[36,969,44],{},[46,971,972],{},[33,973,974,978,982],{},[51,975,976],{},[14,977,121],{},[51,979,980],{},[14,981,190],{},[51,983,193],{},[23,985,197],{"id":196},[27,987,988,998],{},[30,989,990],{},[33,991,992,994,996],{},[36,993,38],{},[36,995,41],{},[36,997,44],{},[46,999,1000],{},[33,1001,1002,1006,1010],{},[51,1003,1004],{},[14,1005,218],{},[51,1007,1008],{},[14,1009,223],{},[51,1011,226,1012,230,1014,234,1016,238,1018],{},[14,1013,229],{},[14,1015,233],{},[14,1017,237],{},[240,1019,243],{"href":242},[23,1021,247],{"id":246},[27,1023,1024,1034],{},[30,1025,1026],{},[33,1027,1028,1030,1032],{},[36,1029,38],{},[36,1031,41],{},[36,1033,44],{},[46,1035,1036],{},[33,1037,1038,1042,1046],{},[51,1039,1040],{},[14,1041,55],{},[51,1043,1044],{},[14,1045,272],{},[51,1047,275,1048,278,1050,281,1052,285],{},[14,1049,272],{},[14,1051,60],{},[14,1053,284],{},[10,1055,288,1056,291,1058,294,1060,298],{},[14,1057,272],{},[14,1059,60],{},[14,1061,297],{},[23,1063,302],{"id":301},[27,1065,1066,1076],{},[30,1067,1068],{},[33,1069,1070,1072,1074],{},[36,1071,38],{},[36,1073,41],{},[36,1075,44],{},[46,1077,1078],{},[33,1079,1080,1084,1088],{},[51,1081,1082],{},[14,1083,88],{},[51,1085,1086],{},[14,1087,327],{},[51,1089,330],{},[23,1091,334],{"id":333},[27,1093,1094,1104],{},[30,1095,1096],{},[33,1097,1098,1100,1102],{},[36,1099,38],{},[36,1101,41],{},[36,1103,44],{},[46,1105,1106],{},[33,1107,1108,1112,1116],{},[51,1109,1110],{},[14,1111,88],{},[51,1113,1114],{},[14,1115,359],{},[51,1117,362],{},[23,1119,366],{"id":365},[27,1121,1122,1132],{},[30,1123,1124],{},[33,1125,1126,1128,1130],{},[36,1127,38],{},[36,1129,41],{},[36,1131,44],{},[46,1133,1134],{},[33,1135,1136,1140,1144],{},[51,1137,1138],{},[14,1139,55],{},[51,1141,1142],{},[14,1143,60],{},[51,1145,393],{},[23,1147,397],{"id":396},[27,1149,1150,1160],{},[30,1151,1152],{},[33,1153,1154,1156,1158],{},[36,1155,38],{},[36,1157,41],{},[36,1159,44],{},[46,1161,1162],{},[33,1163,1164,1168,1172],{},[51,1165,1166],{},[14,1167,121],{},[51,1169,1170],{},[14,1171,422],{},[51,1173,425],{},[23,1175,429],{"id":428},[27,1177,1178,1188],{},[30,1179,1180],{},[33,1181,1182,1184,1186],{},[36,1183,38],{},[36,1185,41],{},[36,1187,44],{},[46,1189,1190],{},[33,1191,1192,1196,1200],{},[51,1193,1194],{},[14,1195,121],{},[51,1197,1198],{},[14,1199,454],{},[51,1201,457],{},[23,1203,461],{"id":460},[27,1205,1206,1216],{},[30,1207,1208],{},[33,1209,1210,1212,1214],{},[36,1211,38],{},[36,1213,41],{},[36,1215,44],{},[46,1217,1218],{},[33,1219,1220,1224,1228],{},[51,1221,1222],{},[14,1223,482],{},[51,1225,1226],{},[14,1227,487],{},[51,1229,490],{},[23,1231,494],{"id":493},[27,1233,1234,1244],{},[30,1235,1236],{},[33,1237,1238,1240,1242],{},[36,1239,38],{},[36,1241,41],{},[36,1243,44],{},[46,1245,1246],{},[33,1247,1248,1252,1256],{},[51,1249,1250],{},[14,1251,121],{},[51,1253,1254],{},[14,1255,519],{},[51,1257,522,1258],{},[240,1259,526],{"href":525},[23,1261,530],{"id":529},[27,1263,1264,1274],{},[30,1265,1266],{},[33,1267,1268,1270,1272],{},[36,1269,38],{},[36,1271,41],{},[36,1273,44],{},[46,1275,1276],{},[33,1277,1278,1282,1286],{},[51,1279,1280],{},[14,1281,121],{},[51,1283,1284],{},[14,1285,555],{},[51,1287,558],{},[23,1289,562],{"id":561},[27,1291,1292,1302],{},[30,1293,1294],{},[33,1295,1296,1298,1300],{},[36,1297,38],{},[36,1299,41],{},[36,1301,44],{},[46,1303,1304],{},[33,1305,1306,1310,1314],{},[51,1307,1308],{},[14,1309,121],{},[51,1311,1312],{},[14,1313,555],{},[51,1315,589],{},[23,1317,593],{"id":592},[27,1319,1320,1330],{},[30,1321,1322],{},[33,1323,1324,1326,1328],{},[36,1325,38],{},[36,1327,41],{},[36,1329,44],{},[46,1331,1332],{},[33,1333,1334,1338,1342],{},[51,1335,1336],{},[14,1337,121],{},[51,1339,1340],{},[14,1341,618],{},[51,1343,621],{},[23,1345,624],{"id":624},[27,1347,1348,1358],{},[30,1349,1350],{},[33,1351,1352,1354,1356],{},[36,1353,38],{},[36,1355,41],{},[36,1357,44],{},[46,1359,1360],{},[33,1361,1362,1366,1370],{},[51,1363,1364],{},[14,1365,645],{},[51,1367,1368],{},[14,1369,650],{},[51,1371,653],{},[10,1373,656],{},[658,1375,1376,1384,1392,1400,1410],{},[661,1377,1378,669,1382],{},[664,1379,1380],{},[14,1381,668],{},[14,1383,100],{},[661,1385,1386,679,1390],{},[664,1387,1388],{},[14,1389,678],{},[14,1391,133],{},[661,1393,1394,689,1398],{},[664,1395,1396],{},[14,1397,688],{},[14,1399,165],{},[661,1401,1402,699,1406,702,1408,706],{},[664,1403,1404],{},[14,1405,698],{},[14,1407,121],{},[664,1409,705],{},[661,1411,1412,714,1416,717,1418,720,1420,723],{},[664,1413,1414],{},[14,1415,713],{},[14,1417,55],{},[14,1419,247],{},[14,1421,272],{},[10,1423,726,1424,731],{},[240,1425,730],{"href":729},[23,1427,735],{"id":734},[27,1429,1430,1440],{},[30,1431,1432],{},[33,1433,1434,1436,1438],{},[36,1435,38],{},[36,1437,41],{},[36,1439,44],{},[46,1441,1442],{},[33,1443,1444,1448,1452],{},[51,1445,1446],{},[14,1447,756],{},[51,1449,1450],{},[14,1451,761],{},[51,1453,764],{},[10,1455,726,1456,731],{},[240,1457,770],{"href":769},[23,1459,774],{"id":773},[27,1461,1462,1472],{},[30,1463,1464],{},[33,1465,1466,1468,1470],{},[36,1467,38],{},[36,1469,41],{},[36,1471,44],{},[46,1473,1474],{},[33,1475,1476,1480,1484],{},[51,1477,1478],{},[14,1479,121],{},[51,1481,1482],{},[14,1483,799],{},[51,1485,802],{},{"title":804,"searchDepth":805,"depth":805,"links":1487},[1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507],{"id":25,"depth":805,"text":25},{"id":66,"depth":805,"text":67},{"id":99,"depth":805,"text":100},{"id":132,"depth":805,"text":133},{"id":164,"depth":805,"text":165},{"id":196,"depth":805,"text":197},{"id":246,"depth":805,"text":247},{"id":301,"depth":805,"text":302},{"id":333,"depth":805,"text":334},{"id":365,"depth":805,"text":366},{"id":396,"depth":805,"text":397},{"id":428,"depth":805,"text":429},{"id":460,"depth":805,"text":461},{"id":493,"depth":805,"text":494},{"id":529,"depth":805,"text":530},{"id":561,"depth":805,"text":562},{"id":592,"depth":805,"text":593},{"id":624,"depth":805,"text":624},{"id":734,"depth":805,"text":735},{"id":773,"depth":805,"text":774},{},{"title":5,"description":827},1782551378041]