import { $http, Method } from "@/http"; export const getDeviceManageList = (data) => { return $http({ url: `/api/deviceManage/queryDeviceList`, method: Method.POST, data }) } export const getSystemLanguage = (d
path:"/404", name:"NotFound", component:() =>import("@c/404.vue"), meta: { title:"404", auth:false, }, }, { path:"/:pathMatch(.*)", redirect:"/404", }, ]; // 配置router constrouter =createRouter({ history:createWebHistory(), routes, scrollBehavior(to,from) { console.l...
index: "主頁", list: "清單", info: "資訊", welcome: "歡迎光臨", }; export default zhHk; 英文en // 英文 const en = { home: "Home", index: "Index", list: "List", info: "Info", welcome: "Welcome", }; export default en; 配置index.ts 导入lang.ts import zhCn from "./zhCn"...
import { loginAPI} from "@/api/login"; const search = async(val: IUseTableParam) => { let res = await loginAPI({ ...val, }) console.log( "***" ,res); let { list, pageNum, pageSize, total } = res.data console.log(list, pageNum, pageSize, total); } 1. 2. 3. 4...
this.listObj[fileName] = {}; return new Promise((resolve, reject) => { return new Promise((resolve) => { const img = new Image(); img.src = _URL.createObjectURL(file); img.onload = function() {2 changes: 1 addition & 1 deletion 2 src/components/UploadExcel/index.vue Original ...
We defined created a new component ListUsers and defined the users data to be passed from the parent via props.As learned earlier the defineProps function is used for that. It does not need to be imported. const props = defineProps({ users: {type: Array, required: true} }) The compone...
TypeScript编译器编译的结果还不能直接用于生产环境,使用Babel可以通过browserlist来转译出兼容性适用于生产环境的js代码。 Babel可以引入polyfill,通常会把TypeScript的编译目标设置为ES Next,然后Babel可以根据需要引入polyfill,使得最后生成的js代码体积是最少的。
问Vue CLI 3类型记录-属性“x”不存在于“Vue”类型上EN可以明显的看出来,vue-cli2.0与3.0在目录...
// document.querySelector('#inform-modal')?.classList.add('off') }, ok(e) { clearTimeout(this.modalTimeOut) this.modalOff() this.result(true) }, close() { this.modalOff() this.result(false) // this.reject(false) }, }, } .common-modal { display: flex; justify-content: c...
isDark.value = element.value.classList.contains('dark') @@ -47,7 +48,7 @@ function init() { mutations.forEach((mutation) => { const { type, target } = mutation if (type === 'attributes') { isDark.value = target.classList.contains('dark') isDark.value = (target as HTMLEleme...