vue print canvas display blank

Recently, I have been printing reports in vue + elemnet, and then there is a demand to print the charts directly. After downloading the printing plug-in, I found that the chart part of the charts on the printing page is blank. After careful inspection, I found that the plug-in does not support printing canvas. Later, I found the following js on ...

Posted by darkwolf on Fri, 25 Oct 2019 10:47:05 -0700

Solution for online preview of files in uni app

Just passed, I also wish you all good health, everything goes well and no more bugs in your future life. I. Preface I wrote an article about uploading directory file: Solution of directory file upload (not only pictures and videos) in uni app system , this time to solve the file preview problem.   uni-app It is a framework that uses Vue.js to d ...

Posted by ShawnK on Thu, 24 Oct 2019 19:17:06 -0700

node.js segment point renewal: the implementation method of Nginx configuration file segment download function ﹣ node.js

This tag can be configured in Node.JS to realize the segmented download of files. This article introduces Node.JS segment point continuation: the implementation method of Nginx configuration file segment download function. Please refer to it for your reference. Html5 provides a new Range tag to implemen ...

Posted by BinaryBird on Thu, 24 Oct 2019 02:42:02 -0700

Learn about Vue - [how Vue implements responsive]

Written in the front: This article is a summary of personal daily work and study, non authoritative information, please bring your own thinking ^ - ^. When it comes to response, we will first think of the data attribute in the Vue instance, for example: reassign a certain attribute in data. If the attribute is used in page rendering, the page w ...

Posted by bmarinho on Wed, 23 Oct 2019 19:14:24 -0700

Instructions for using mysql to support native json

text MySQL started to support json natively in 5.7.8. This article will give a brief description of the usage of json types in mysql, hoping to be useful to you. CREATE TABLE testproject ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `skill` JSON NOT NULL, `student` JSON NOT NULL, PRIMARY KEY (`id`) ); View table structure: ...

Posted by scooterlibby on Tue, 22 Oct 2019 13:35:55 -0700

Wechat sharing in vue hash mode for parameter transfer

background In the hash mode of vue project, wechat sharing is needed. Support to pass multi parameter, no parameter, specify jump page, configurable Implementation ideas Due to the existence of hash mode symbol, there will be compatibility problems in different platforms. The shared page cannot jump to the specified page. So the idea is to s ...

Posted by jimbo_head on Tue, 22 Oct 2019 10:23:30 -0700

Vue-CLI3.0 project construction process Series IV: axios application in the project

Now let's talk about the request method in the project - axios Insert (from netizen): storage token suggests state+localStorageBecause state is a single page, you don't need to log in to open the second web page for the same browser, so you need to use cookies or localstorage. Why not use cookies: 1 ...

Posted by rortelli on Tue, 22 Oct 2019 09:59:20 -0700

Vuex source reading and analysis

I. how Vuex is injected into Vue Mount $store to the prototype chain of vue when beforeCreate is executed. let Vue; function install(vm,storeName='$store'){ Vue = vm; Vue.mixin({ beforeCreate() { if(this.$options.store){ //Mount $store to Vue's prototype Vue.prototype[storeName] = thi ...

Posted by igoy on Mon, 21 Oct 2019 21:44:32 -0700

Solve the problem of null session caused by the front end cross domain access session ID inconsistency caused by the separation of front end and back end projects of vue+springboot.

Problem: the front-end cross domain access to the back-end interface does not carry cookie s by default under the browser's security policy, so each request opens a new session. When we print the sessionID in the background, we will find that the sessionID of each request is different. Since each request is a new session, it is naturally null ...

Posted by robotta1530 on Mon, 21 Oct 2019 09:12:28 -0700

Thermal planet software development program

When the project is very large, if all the states are concentrated in one object, the thermal planet software development (T: I8O-285I-O282 V forest) store object may become quite bloated. To solve this problem, Vuex allows us to divide the store into modules. Each module has its own state, mutation, action, getter, and even nested submodules ...

Posted by behrk2 on Fri, 18 Oct 2019 12:43:06 -0700