mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
record_detail autoupdate
This commit is contained in:
1 parent
3a90e2893f
commit
c68953c59f
17 files changed
+209
-278
No files matched your search
@@ -203,7 +203,7 @@ export default function (env = {}) {
|
||||
name: 'vendors',
|
||||
minChunks: (module, count) => (
|
||||
module.resource
|
||||
&& module.resource.indexOf(root()) === -1
|
||||
&& module.resource.indexOf(root('node_modules'))
|
||||
&& module.resource.match(/\.jsx?$/)
|
||||
),
|
||||
}),
|
||||
|
||||
@@ -6,7 +6,9 @@ const page = new NamedPage('record_detail', async () => {
|
||||
|
||||
const sock = new SockJs(Context.socketUrl);
|
||||
const dd = new DiffDOM();
|
||||
|
||||
sock.onopen = () => {
|
||||
sock.send(document.cookie);
|
||||
};
|
||||
sock.onmessage = (message) => {
|
||||
const msg = JSON.parse(message.data);
|
||||
const newStatus = $(msg.status_html);
|
||||
|
||||
Reference in new issue
Block a user