Dva.js introduces model, error reporting model.namespace should be defined?

I read the source code and said that this error will be reported when the model.namespace attribute is empty
but my namespace is defined. I don"t know why I reported this error.

clipboard.png

clipboard.png

model

clipboard.png

...........................................

clipboard.png

just found that, require (". / models/app") reported that model.namespace was not defined
added default (require (". / models/app") .default) and then mistakenly reported that the naming was not unique

dizzy.

Apr.07,2021

because the model
introduced in homepage and the model introduced in 3.model are the same
, the same model


    namespace  is introduced repeatedly, instead of using the word  app . 

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf7263-32046.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf7263-32046.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?