- 2023-08-20222
importdayjsfrom'dayjs';import{nextTick}from'vue';import{useDictStore}from'/@/store/modules/dict';import{useI18n}from'/@/hooks/web/useI18n';constdictStore=useDictStore();const{t}=useI18n();
- 2023-08-181111
importdayjsfrom'dayjs';import{nextTick}from'vue';import{useDictStore}from'/@/store/modules/dict';import{useI18n}from'/@/hooks/web/useI18n';constdictStore=useDictStore();const{t}=useI1
- 2023-07-26bash变量冒号扩展
参考自网道Bash提供四个特殊语法,跟变量的默认值有关,目的是保证变量不为空。如果变量为空则返回默认值,否则返回变量本来的值${varname:-defaultval}上面语法的含义是,如果变量varname存在且不为空,则返回它的值,否则返回defaultval。它的目的是返回一个默认值,比如${count:-0}