typeof array[number][key] not return const
Chung
Answered May 23rd, 2:32 a.m.
// Code 1
const CuisineTypeOptions: { label: string; value: 'traditional' | 'typical' }[] = [
{ label: 'Traditional', value: 'traditional' },
{ label: 'Typical', value: 'typical' },
] as const
type Type = (typeof CuisineTypeOptions)[number]['value'] // -> 'traditional' | 'typical'
0
Deploy dự án front-end...
Chung
Answered May 11th, 10:25 a.m.
https://flashpanel.io nhé em
mua 1 vps, kết nối với flashpanel, sau đó setup thôi
0
Reload trang trả về 404 khi deploy dự án vuejs với iis server
Chung
Answered Apr 22nd, 3:32 a.m.
https://stackoverflow.com/questions/72941720/dealing-with-404-error-on-iis-for-a-vite-app
bạn thử xem.
bạn có nhắc đến nginx, sao mình k dùng linux mà deploy
+1
Laravel echo không chạy ở client
Chung
Answered Dec 28th, 2021 5:02 a.m.
Coi lại code đi bạn.
Sau khi connect socket xong thì hãy join channel rồi mới listen event
Echo.join(`chat.${roomId}`)
.here(...)
.joining(...)
.leaving(...)
.listen('NewMessage', (e) => {
//
});
0
Organizations
Have no organizations yet.