Commit c810faa8 authored by 李维's avatar 李维

添加视频上传组件

parent 797e5629
...@@ -9,8 +9,11 @@ ...@@ -9,8 +9,11 @@
"version": "0.1.0", "version": "0.1.0",
"dependencies": { "dependencies": {
"axios": "^1.7.2", "axios": "^1.7.2",
"crypto-js": "^4.2.0",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"element-ui": "^2.15.14", "element-ui": "^2.15.14",
"spark-md5": "^3.0.2",
"uuid": "^10.0.0",
"vue": "^2.6.14" "vue": "^2.6.14"
}, },
"devDependencies": { "devDependencies": {
...@@ -2097,6 +2100,11 @@ ...@@ -2097,6 +2100,11 @@
"semver": "bin/semver" "semver": "bin/semver"
} }
}, },
"node_modules/crypto-js": {
"version": "4.2.0",
"resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
},
"node_modules/css-declaration-sorter": { "node_modules/css-declaration-sorter": {
"version": "6.4.1", "version": "6.4.1",
"resolved": "https://registry.npmmirror.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz", "resolved": "https://registry.npmmirror.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz",
...@@ -6590,6 +6598,15 @@ ...@@ -6590,6 +6598,15 @@
"websocket-driver": "^0.7.4" "websocket-driver": "^0.7.4"
} }
}, },
"node_modules/sockjs/node_modules/uuid": {
"version": "8.3.2",
"resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
"dev": true,
"bin": {
"uuid": "dist/bin/uuid"
}
},
"node_modules/source-map": { "node_modules/source-map": {
"version": "0.6.1", "version": "0.6.1",
"resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz", "resolved": "https://registry.npmmirror.com/source-map/-/source-map-0.6.1.tgz",
...@@ -6616,6 +6633,11 @@ ...@@ -6616,6 +6633,11 @@
"source-map": "^0.6.0" "source-map": "^0.6.0"
} }
}, },
"node_modules/spark-md5": {
"version": "3.0.2",
"resolved": "https://registry.npmmirror.com/spark-md5/-/spark-md5-3.0.2.tgz",
"integrity": "sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw=="
},
"node_modules/spdx-correct": { "node_modules/spdx-correct": {
"version": "3.2.0", "version": "3.2.0",
"resolved": "https://registry.npmmirror.com/spdx-correct/-/spdx-correct-3.2.0.tgz", "resolved": "https://registry.npmmirror.com/spdx-correct/-/spdx-correct-3.2.0.tgz",
...@@ -7135,10 +7157,13 @@ ...@@ -7135,10 +7157,13 @@
} }
}, },
"node_modules/uuid": { "node_modules/uuid": {
"version": "8.3.2", "version": "10.0.0",
"resolved": "https://registry.npmmirror.com/uuid/-/uuid-8.3.2.tgz", "resolved": "https://registry.npmmirror.com/uuid/-/uuid-10.0.0.tgz",
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", "integrity": "sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==",
"dev": true, "funding": [
"https://github.com/sponsors/broofa",
"https://github.com/sponsors/ctavan"
],
"bin": { "bin": {
"uuid": "dist/bin/uuid" "uuid": "dist/bin/uuid"
} }
......
...@@ -8,8 +8,11 @@ ...@@ -8,8 +8,11 @@
}, },
"dependencies": { "dependencies": {
"axios": "^1.7.2", "axios": "^1.7.2",
"crypto-js": "^4.2.0",
"echarts": "^5.5.0", "echarts": "^5.5.0",
"element-ui": "^2.15.14", "element-ui": "^2.15.14",
"spark-md5": "^3.0.2",
"uuid": "^10.0.0",
"vue": "^2.6.14" "vue": "^2.6.14"
}, },
"devDependencies": { "devDependencies": {
......
This diff is collapsed.
This diff is collapsed.
...@@ -9,8 +9,10 @@ Vue.use(ElementUI); ...@@ -9,8 +9,10 @@ Vue.use(ElementUI);
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$getData = () => { Vue.prototype.$getData = () => {
console.log("===== getData =====");
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
(window).courseware.getData((data) => { (window).courseware.getData((data) => {
console.log(data);
resolve(data) resolve(data)
}, "default_key") }, "default_key")
}) })
...@@ -19,6 +21,8 @@ Vue.prototype.$getData = () => { ...@@ -19,6 +21,8 @@ Vue.prototype.$getData = () => {
Vue.prototype.$getDPEData = getDPEData; Vue.prototype.$getDPEData = getDPEData;
Vue.prototype.$setData = (data) => { Vue.prototype.$setData = (data) => {
console.log("===== setData =====");
console.log(data);
(window).courseware.setData(data, null, "default_key") (window).courseware.setData(data, null, "default_key")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment