摘要: 安装 官网:https://vue-i18n.intlify.dev/api/general.html pnpm add vue-i18n@9 使用 // @/locale/index.ts import appConfig from "@/configure/app.config.ts"; imp 阅读全文
posted @ 2023-10-03 23:11 灵火 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 官方说明:https://blog.jetbrains.com/webstorm/2018/01/working-with-vue-js-in-webstorm/#:~:text=We can debug our application,and start the debug session. 打开 阅读全文
posted @ 2023-10-03 22:13 灵火 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 教程基于 vite 和 vue3-ts 前往 tsconfig.json 修改 compilerOptions 选项,如果没有以下参数就自己添加: { "compilerOptions": { "baseUrl": "./src", "paths": { "@/*": [ "src/*" ] } } 阅读全文
posted @ 2023-10-03 22:06 灵火 阅读(373) 评论(0) 推荐(0) 编辑
摘要: 安装 pinia 官网: https://pinia.vuejs.org/ pnpm add pinia 使用 新建 pinia 实例 // @/store/index.ts import {createPinia} from "pinia"; import useUserStore from "@ 阅读全文
posted @ 2023-10-03 21:55 灵火 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 安装 vue-router 官网: https://router.vuejs.org/installation.html pnpm add vue-router@4 使用 vue-router 创建自己的 router // @/route/index.ts import {createRouter 阅读全文
posted @ 2023-10-03 21:44 灵火 阅读(62) 评论(0) 推荐(0) 编辑
摘要: Linq 中, GroupBy 之后 OrderBy GroupBy().OrderBy() 是对 Key 进行的排序,所以想要对每组内的 Value 进行排序,需要 Foreach 之内对每个 Group 进行 OrderBy。 代码示例 using System; using System.Co 阅读全文
posted @ 2023-09-20 16:33 灵火 阅读(17) 评论(0) 推荐(0) 编辑
摘要: js 中 function 其实就是 class,function name 就是 class name; 在方法体中,想要实现继承的效果,可以通过 call 来实现: call 方法更改对象内部 this 的指向; function Animal(name){ this.name = name; 阅读全文
posted @ 2023-09-16 15:31 灵火 阅读(11) 评论(0) 推荐(0) 编辑
摘要: vue 地方使用了 `` 注释,这是正常的,但是 css 部分也是使用 `` 注释,css 应该使用 `//` 或 `/* */` 注释,这里错了。 多次检查扩展,发现是扩展的问题,卸载 [vue](https://marketplace.visualstudio.com/items?itemNam 阅读全文
posted @ 2023-08-23 15:00 灵火 阅读(405) 评论(0) 推荐(0) 编辑
摘要: # License Patch (License Location) ## Sitecore Instance (CM, CD) 1. [Sitecore Install Root Path]\App_Data 2. No need restart ## Identity Server, Horiz 阅读全文
posted @ 2023-08-15 10:26 灵火 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 在测试的时候,发现了一段挺有意思的 code block. 待学:https://zhuanlan.zhihu.com/p/135383776 def g2(iter): yield from iter def g1(iter): yield iter def out(ar): for i in a 阅读全文
posted @ 2023-07-28 15:34 灵火 阅读(10) 评论(0) 推荐(0) 编辑